Class: Twilio::REST::Memory::V1::EventPage
- Defined in:
- lib/twilio-ruby/rest/memory/v1/event.rb
Constant Summary
Constants inherited from Page
Instance Attribute Summary
Attributes inherited from TokenPage
Instance Method Summary collapse
-
#get_instance(payload) ⇒ EventInstance
Build an instance of EventInstance.
-
#initialize(version, response, solution) ⇒ EventPage
constructor
Initialize the EventPage.
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from TokenPage
#load_page, #next_page, #next_page_url, #next_token, #previous_page, #previous_page_url, #previous_token
Methods inherited from Page
#each, #load_page, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution) ⇒ EventPage
Initialize the EventPage
193 194 195 196 197 198 199 200 |
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 193 def initialize(version, response, solution) apiV1Version = ApiV1Version.new version.domain, version super(apiV1Version, response) # Path Solution @solution = solution end |
Instance Method Details
#get_instance(payload) ⇒ EventInstance
Build an instance of EventInstance
206 207 208 |
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 206 def get_instance(payload) EventInstance.new(@version, payload, store_id: @solution[:store_id], profile_id: @solution[:profile_id]) end |
#to_s ⇒ Object
Provide a user friendly representation
212 213 214 |
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 212 def to_s '<Twilio.Memory.V1.EventPage>' end |