Class: Twilio::REST::Api::V2010::AccountContext::CallContext::UserDefinedMessageListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::CallContext::UserDefinedMessageListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ UserDefinedMessageListResponse
constructor
A new instance of UserDefinedMessageListResponse.
- #status_code ⇒ Object
- #user_defined_message ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ UserDefinedMessageListResponse
Returns a new instance of UserDefinedMessageListResponse.
176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 176 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end = data_list.map do |data| UserDefinedMessageInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
192 193 194 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 192 def headers @headers end |
#status_code ⇒ Object
196 197 198 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 196 def status_code @status_code end |
#user_defined_message ⇒ Object
188 189 190 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 188 def end |