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.



470
471
472
473
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 470

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

Instance Method Details

#flowObject



475
476
477
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 475

def flow
    @flow_instance
end

#headersObject



479
480
481
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 479

def headers
    @headers
end

#status_codeObject



483
484
485
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 483

def status_code
    @status_code
end

#to_sObject



487
488
489
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 487

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