Class: Twilio::REST::Content::V1::ContentContext::ApprovalCreateListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Content::V1::ContentContext::ApprovalCreateListResponse
- Defined in:
- lib/twilio-ruby/rest/content/v1/content/approval_create.rb
Instance Method Summary collapse
- #approval_create ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ApprovalCreateListResponse
constructor
A new instance of ApprovalCreateListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ApprovalCreateListResponse
Returns a new instance of ApprovalCreateListResponse.
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_create ⇒ Object
186 187 188 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 186 def approval_create @approval_create end |
#headers ⇒ Object
190 191 192 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 190 def headers @headers end |
#status_code ⇒ Object
194 195 196 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_create.rb', line 194 def status_code @status_code end |