Class: Twilio::REST::Serverless::V1::ServiceContext::EnvironmentPage

Inherits:
Page
  • Object
show all
Defined in:
lib/twilio-ruby/rest/serverless/v1/service/environment.rb

Constant Summary

Constants inherited from Page

Page::META_KEYS

Instance Method Summary collapse

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) ⇒ EnvironmentPage

Initialize the EnvironmentPage



292
293
294
295
296
297
# File 'lib/twilio-ruby/rest/serverless/v1/service/environment.rb', line 292

def initialize(version, response, solution)
    super(version, response)

    # Path Solution
    @solution = solution
end

Instance Method Details

#get_instance(payload) ⇒ EnvironmentInstance

Build an instance of EnvironmentInstance



303
304
305
# File 'lib/twilio-ruby/rest/serverless/v1/service/environment.rb', line 303

def get_instance(payload)
    EnvironmentInstance.new(@version, payload, service_sid: @solution[:service_sid])
end

#to_sObject

Provide a user friendly representation



309
310
311
# File 'lib/twilio-ruby/rest/serverless/v1/service/environment.rb', line 309

def to_s
    '<Twilio.Serverless.V1.EnvironmentPage>'
end