Class: Twilio::REST::Studio::V2::FlowListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/studio/v2/flow.rb,
lib/twilio-ruby/rest/studio/v2/flow.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ FlowListResponse

Returns a new instance of FlowListResponse.

Parameters:

  • instance (Array<FlowInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


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

#flowObject



585
586
587
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 585

def flow
    @flow
end

#flow_instanceObject



504
505
506
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 504

def flow_instance
    @instance
end

#headersObject



589
590
591
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 589

def headers
  @headers
end

#status_codeObject



593
594
595
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 593

def status_code
  @status_code
end