Class: Twilio::REST::Studio::V1::FlowContext::EngagementInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, engagement_instance, headers, status_code) ⇒ EngagementInstanceMetadata

Initializes a new EngagementInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}EngagementInstance]

    engagement_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



376
377
378
379
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement.rb', line 376

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

Instance Method Details

#engagementObject



381
382
383
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement.rb', line 381

def engagement
    @engagement_instance
end

#headersObject



385
386
387
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement.rb', line 385

def headers
    @headers
end

#status_codeObject



389
390
391
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement.rb', line 389

def status_code
    @status_code
end

#to_sObject



393
394
395
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement.rb', line 393

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