Class: Twilio::REST::Accounts::V1::MessagingGeopermissionsPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Accounts::V1::MessagingGeopermissionsPageMetadata
- Defined in:
- lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#messaging_geopermissions_page ⇒ Object
readonly
Returns the value of attribute messaging_geopermissions_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ MessagingGeopermissionsPageMetadata
constructor
A new instance of MessagingGeopermissionsPageMetadata.
- #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) ⇒ MessagingGeopermissionsPageMetadata
Returns a new instance of MessagingGeopermissionsPageMetadata.
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb', line 186 def initialize(version, response, solution, limit) super(version, response) = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) << .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
#messaging_geopermissions_page ⇒ Object (readonly)
Returns the value of attribute messaging_geopermissions_page.
184 185 186 |
# File 'lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb', line 184 def end |
Instance Method Details
#each ⇒ Object
202 203 204 205 206 |
# File 'lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb', line 202 def each .each do |record| yield record end end |
#to_s ⇒ Object
208 209 210 |
# File 'lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb', line 208 def to_s '<Twilio::REST::Accounts::V1PageMetadata>'; end |