Class: Twilio::REST::Content::V1::ContentContext::ApprovalCreateListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ApprovalCreateListResponse.

Parameters:



174
175
176
177
178
179
180
181
182
183
184
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 174

def initialize(version, payload, key, limit = :unset)
  data_list = payload.body[key]
  if limit != :unset
    data_list = data_list[0, limit]
  end
  @approval_create = data_list.map do |data|
    ApprovalCreateInstance.new(version, data)
  end
  @headers = payload.headers
  @status_code = payload.status_code
end

Instance Method Details

#approval_createObject



186
187
188
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 186

def approval_create
    @approval_create
end

#headersObject



190
191
192
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 190

def headers
  @headers
end

#status_codeObject



194
195
196
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 194

def status_code
  @status_code
end