Class: Twilio::REST::Api::V2010::AccountContext::CallContext::UserDefinedMessagePageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Api::V2010::AccountContext::CallContext::UserDefinedMessagePageMetadata
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#user_defined_message_page ⇒ Object
readonly
Returns the value of attribute user_defined_message_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ UserDefinedMessagePageMetadata
constructor
A new instance of UserDefinedMessagePageMetadata.
- #to_s ⇒ Object
Methods inherited from PageMetadata
#get_key, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution, limit) ⇒ UserDefinedMessagePageMetadata
Returns a new instance of UserDefinedMessagePageMetadata.
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 145 def initialize(version, response, solution, limit) super(version, response) = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) << UserDefinedMessageListResponse.new(version, @payload, key, limit - records) @payload = self.next_page break unless @payload records += @payload.body[key].size end # Path Solution @solution = solution end |
Instance Attribute Details
#user_defined_message_page ⇒ Object (readonly)
Returns the value of attribute user_defined_message_page.
143 144 145 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 143 def end |
Instance Method Details
#each ⇒ Object
161 162 163 164 165 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 161 def each .each do |record| yield record end end |
#to_s ⇒ Object
167 168 169 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 167 def to_s '<Twilio::REST::Api::V2010PageMetadata>'; end |