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:



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

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



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

def approval_create
    @approval_create
end

#headersObject



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

def headers
  @headers
end

#status_codeObject



197
198
199
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 197

def status_code
  @status_code
end