Class: Twilio::REST::Studio::V2::FlowListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Studio::V2::FlowListResponse
- Defined in:
- lib/twilio-ruby/rest/studio/v2/flow.rb,
lib/twilio-ruby/rest/studio/v2/flow.rb
Instance Method Summary collapse
- #flow ⇒ Object
- #flow_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ FlowListResponse
constructor
A new instance of FlowListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ FlowListResponse
Returns a new instance of FlowListResponse.
496 497 498 499 500 501 502 |
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 496 def initialize(version, payload, key) @flow_instance = payload.body[key].map do |data| FlowInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#flow ⇒ Object
585 586 587 |
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 585 def flow @flow end |
#flow_instance ⇒ Object
504 505 506 |
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 504 def flow_instance @instance end |
#headers ⇒ Object
589 590 591 |
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 589 def headers @headers end |
#status_code ⇒ Object
593 594 595 |
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 593 def status_code @status_code end |