Class: Twilio::REST::Marketplace::V1::ModuleDataListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Marketplace::V1::ModuleDataListResponse
- Defined in:
- lib/twilio-ruby/rest/marketplace/v1/module_data.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ModuleDataListResponse
constructor
A new instance of ModuleDataListResponse.
- #module_data ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ModuleDataListResponse
211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/twilio-ruby/rest/marketplace/v1/module_data.rb', line 211 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @module_data = data_list.map do |data| ModuleDataInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
227 228 229 |
# File 'lib/twilio-ruby/rest/marketplace/v1/module_data.rb', line 227 def headers @headers end |
#module_data ⇒ Object
223 224 225 |
# File 'lib/twilio-ruby/rest/marketplace/v1/module_data.rb', line 223 def module_data @module_data end |
#status_code ⇒ Object
231 232 233 |
# File 'lib/twilio-ruby/rest/marketplace/v1/module_data.rb', line 231 def status_code @status_code end |