Class: Twilio::REST::Routes::V2::TrunkListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Routes::V2::TrunkListResponse
- Defined in:
- lib/twilio-ruby/rest/routes/v2/trunk.rb,
lib/twilio-ruby/rest/routes/v2/trunk.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ TrunkListResponse
constructor
A new instance of TrunkListResponse.
- #status_code ⇒ Object
- #trunk ⇒ Object
- #trunk_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ TrunkListResponse
Returns a new instance of TrunkListResponse.
218 219 220 221 222 223 224 |
# File 'lib/twilio-ruby/rest/routes/v2/trunk.rb', line 218 def initialize(version, payload, key) @trunk_instance = payload.body[key].map do |data| TrunkInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
311 312 313 |
# File 'lib/twilio-ruby/rest/routes/v2/trunk.rb', line 311 def headers @headers end |
#status_code ⇒ Object
315 316 317 |
# File 'lib/twilio-ruby/rest/routes/v2/trunk.rb', line 315 def status_code @status_code end |
#trunk ⇒ Object
307 308 309 |
# File 'lib/twilio-ruby/rest/routes/v2/trunk.rb', line 307 def trunk @trunk end |
#trunk_instance ⇒ Object
226 227 228 |
# File 'lib/twilio-ruby/rest/routes/v2/trunk.rb', line 226 def trunk_instance @instance end |