Class: Twilio::REST::Voice::V1::ByocTrunkListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Voice::V1::ByocTrunkListResponse
- Defined in:
- lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb,
lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb
Instance Method Summary collapse
- #byoc_trunk ⇒ Object
- #byoc_trunk_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ByocTrunkListResponse
constructor
A new instance of ByocTrunkListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ByocTrunkListResponse
Returns a new instance of ByocTrunkListResponse.
517 518 519 520 521 522 523 |
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 517 def initialize(version, payload, key) @byoc_trunk_instance = payload.body[key].map do |data| ByocTrunkInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#byoc_trunk ⇒ Object
606 607 608 |
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 606 def byoc_trunk @byoc_trunk end |
#byoc_trunk_instance ⇒ Object
525 526 527 |
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 525 def byoc_trunk_instance @instance end |
#headers ⇒ Object
610 611 612 |
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 610 def headers @headers end |
#status_code ⇒ Object
614 615 616 |
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 614 def status_code @status_code end |