Class: Twilio::REST::Events::V1::SchemaListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Events::V1::SchemaListResponse
- Defined in:
- lib/twilio-ruby/rest/events/v1/schema.rb,
lib/twilio-ruby/rest/events/v1/schema.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ SchemaListResponse
constructor
A new instance of SchemaListResponse.
- #schema ⇒ Object
- #schema_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ SchemaListResponse
Returns a new instance of SchemaListResponse.
174 175 176 177 178 179 180 |
# File 'lib/twilio-ruby/rest/events/v1/schema.rb', line 174 def initialize(version, payload, key) @schema_instance = payload.body[key].map do |data| SchemaInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
267 268 269 |
# File 'lib/twilio-ruby/rest/events/v1/schema.rb', line 267 def headers @headers end |
#schema ⇒ Object
263 264 265 |
# File 'lib/twilio-ruby/rest/events/v1/schema.rb', line 263 def schema @schema end |
#schema_instance ⇒ Object
182 183 184 |
# File 'lib/twilio-ruby/rest/events/v1/schema.rb', line 182 def schema_instance @instance end |
#status_code ⇒ Object
271 272 273 |
# File 'lib/twilio-ruby/rest/events/v1/schema.rb', line 271 def status_code @status_code end |