Class: Twilio::REST::Studio::V2::FlowInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/studio/v2/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.



490
491
492
493
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 490

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

Instance Method Details

#flowObject



495
496
497
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 495

def flow
    @flow_instance
end

#headersObject



499
500
501
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 499

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



507
508
509
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 507

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