Class: Twilio::REST::Content::V1::ContentContext::ApprovalFetchListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Content::V1::ContentContext::ApprovalFetchListResponse
- 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
- #approval_fetch ⇒ Object
- #approval_fetch_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ApprovalFetchListResponse
constructor
A new instance of ApprovalFetchListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ApprovalFetchListResponse
Returns a new instance of ApprovalFetchListResponse.
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_fetch ⇒ Object
245 246 247 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 245 def approval_fetch @approval_fetch end |
#approval_fetch_instance ⇒ Object
164 165 166 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 164 def approval_fetch_instance @instance end |
#headers ⇒ Object
249 250 251 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 249 def headers @headers end |
#status_code ⇒ Object
253 254 255 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 253 def status_code @status_code end |