Class: Twilio::REST::Studio::V1::FlowInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/studio/v1/flow.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, flow_instance, headers, status_code) ⇒ FlowInstanceMetadata

Initializes a new FlowInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}FlowInstance] —

    flow_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



317
318
319
320
# File 'lib/twilio-ruby/rest/studio/v1/flow.rb', line 317

def initialize(version, flow_instance, headers, status_code)
    super(version, headers, status_code)
    @flow_instance = flow_instance
end

Instance Method Details

#flow ⇒ Object



322
323
324
# File 'lib/twilio-ruby/rest/studio/v1/flow.rb', line 322

def flow
    @flow_instance
end

#headers ⇒ Object



326
327
328
# File 'lib/twilio-ruby/rest/studio/v1/flow.rb', line 326

def headers
    @headers
end

#status_code ⇒ Object



330
331
332
# File 'lib/twilio-ruby/rest/studio/v1/flow.rb', line 330

def status_code
    @status_code
end

#to_s ⇒ Object



334
335
336
# File 'lib/twilio-ruby/rest/studio/v1/flow.rb', line 334

def to_s
  "<Twilio.Api.V2010.FlowInstanceMetadata status=#{@status_code}>"
end