Class: Twilio::REST::Verify::V2::TemplateListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Verify::V2::TemplateListResponse
- Defined in:
- lib/twilio-ruby/rest/verify/v2/template.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ TemplateListResponse
constructor
A new instance of TemplateListResponse.
- #status_code ⇒ Object
- #template ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ TemplateListResponse
Returns a new instance of TemplateListResponse.
224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 224 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @template = data_list.map do |data| TemplateInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
240 241 242 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 240 def headers @headers end |
#status_code ⇒ Object
244 245 246 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 244 def status_code @status_code end |
#template ⇒ Object
236 237 238 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 236 def template @template end |