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
Instance Method Summary collapse
-
#initialize(version, payload, key) ⇒ SchemaListResponse
constructor
A new instance of SchemaListResponse.
- #schema_instance ⇒ Object
Constructor Details
#initialize(version, payload, key) ⇒ 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
#schema_instance ⇒ Object
182 183 184 |
# File 'lib/twilio-ruby/rest/events/v1/schema.rb', line 182 def schema_instance @instance end |