Class: Twilio::REST::Api::V2010::AccountContext::CallContext::UserDefinedMessageSubscriptionListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::CallContext::UserDefinedMessageSubscriptionListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb,
lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ UserDefinedMessageSubscriptionListResponse
constructor
A new instance of UserDefinedMessageSubscriptionListResponse.
- #status_code ⇒ Object
- #user_defined_message_subscription ⇒ Object
- #user_defined_message_subscription_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ UserDefinedMessageSubscriptionListResponse
Returns a new instance of UserDefinedMessageSubscriptionListResponse.
219 220 221 222 223 224 225 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb', line 219 def initialize(version, payload, key) = payload.body[key].map do |data| UserDefinedMessageSubscriptionInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
312 313 314 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb', line 312 def headers @headers end |
#status_code ⇒ Object
316 317 318 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb', line 316 def status_code @status_code end |
#user_defined_message_subscription ⇒ Object
308 309 310 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb', line 308 def end |
#user_defined_message_subscription_instance ⇒ Object
227 228 229 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb', line 227 def @instance end |