Class: Twilio::REST::Content::V1::ContentContext::ApprovalFetchListResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ ApprovalFetchListResponse

Returns a new instance of ApprovalFetchListResponse.

Parameters:



156
157
158
159
160
161
162
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 156

def initialize(version, payload, key)
   @approval_fetch_instance = payload.body[key].map do |data|
    ApprovalFetchInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#approval_fetchObject



245
246
247
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 245

def approval_fetch
    @approval_fetch
end

#approval_fetch_instanceObject



164
165
166
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 164

def approval_fetch_instance
    @instance
end

#headersObject



249
250
251
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 249

def headers
  @headers
end

#status_codeObject



253
254
255
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 253

def status_code
  @status_code
end