Class: Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationPageMetadata
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#linkshortening_messaging_service_domain_association_page ⇒ Object
readonly
Returns the value of attribute linkshortening_messaging_service_domain_association_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ LinkshorteningMessagingServiceDomainAssociationPageMetadata
constructor
A new instance of LinkshorteningMessagingServiceDomainAssociationPageMetadata.
- #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) ⇒ LinkshorteningMessagingServiceDomainAssociationPageMetadata
Returns a new instance of LinkshorteningMessagingServiceDomainAssociationPageMetadata.
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb', line 200 def initialize(version, response, solution, limit) super(version, response) @linkshortening_messaging_service_domain_association_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @linkshortening_messaging_service_domain_association_page << LinkshorteningMessagingServiceDomainAssociationListResponse.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
#linkshortening_messaging_service_domain_association_page ⇒ Object (readonly)
Returns the value of attribute linkshortening_messaging_service_domain_association_page.
198 199 200 |
# File 'lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb', line 198 def linkshortening_messaging_service_domain_association_page @linkshortening_messaging_service_domain_association_page end |
Instance Method Details
#each ⇒ Object
216 217 218 219 220 |
# File 'lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb', line 216 def each @linkshortening_messaging_service_domain_association_page.each do |record| yield record end end |
#to_s ⇒ Object
222 223 224 |
# File 'lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb', line 222 def to_s '<Twilio::REST::Messaging::V1PageMetadata>'; end |