Skip to content

Can't call instance methods like sip_peer.delete with different accounts #38

@bruno-campos

Description

@bruno-campos

It is possible the class methods like BandwidthIris::SipPeer.create or BandwidthIris::SipPeerProducts.create_origination_settings have wrappers that accepts multiple params, including a client with account set. For example:

BandwidthIris::SipPeerProducts.create_origination_settings(iris_client, site_id, sip_peer_id, data)
BandwidthIris::SipPeer.create(iris_client, site_id, data)

But when using instance methods like sip_peer.delete, I need to rely on global configs and can't change the account. (related comment: #19 (comment))

Do you have plans on adding those methods as class methods that will accept the client as well? Is this something desirable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions