Class: Twilio::REST::Preview::Marketplace::InstalledAddOnListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Preview::Marketplace::InstalledAddOnListResponse
- Defined in:
- lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb,
lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ InstalledAddOnListResponse
constructor
A new instance of InstalledAddOnListResponse.
- #installed_add_on ⇒ Object
- #installed_add_on_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ InstalledAddOnListResponse
Returns a new instance of InstalledAddOnListResponse.
453 454 455 456 457 458 459 |
# File 'lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb', line 453 def initialize(version, payload, key) @installed_add_on_instance = payload.body[key].map do |data| InstalledAddOnInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
546 547 548 |
# File 'lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb', line 546 def headers @headers end |
#installed_add_on ⇒ Object
542 543 544 |
# File 'lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb', line 542 def installed_add_on @installed_add_on end |
#installed_add_on_instance ⇒ Object
461 462 463 |
# File 'lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb', line 461 def installed_add_on_instance @instance end |
#status_code ⇒ Object
550 551 552 |
# File 'lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb', line 550 def status_code @status_code end |