Class: Twilio::REST::Content::V1::ContentContext::ApprovalFetchInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, approval_fetch_instance, headers, status_code) ⇒ ApprovalFetchInstanceMetadata

Initializes a new ApprovalFetchInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}ApprovalFetchInstance] —

    approval_fetch_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



130
131
132
133
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 130

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

Instance Method Details

#approval_fetch ⇒ Object



135
136
137
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 135

def approval_fetch
    @approval_fetch_instance
end

#headers ⇒ Object



139
140
141
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 139

def headers
    @headers
end

#status_code ⇒ Object



143
144
145
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 143

def status_code
    @status_code
end

#to_s ⇒ Object



147
148
149
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 147

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