Class: Twilio::REST::Serverless::V1
- Defined in:
- lib/twilio-ruby/rest/serverless/v1.rb,
lib/twilio-ruby/rest/serverless/v1/service.rb,
lib/twilio-ruby/rest/serverless/v1/service/asset.rb,
lib/twilio-ruby/rest/serverless/v1/service/build.rb,
lib/twilio-ruby/rest/serverless/v1/service/function.rb,
lib/twilio-ruby/rest/serverless/v1/service/environment.rb,
lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb,
lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb,
lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb,
lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb,
lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb,
lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb,
lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb
Defined Under Namespace
Classes: ServiceContext, ServiceInstance, ServiceList, ServicePage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Serverless.
- #services(sid = :unset) ⇒ Twilio::REST::Serverless::V1::ServiceContext, Twilio::REST::Serverless::V1::ServiceList
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of Serverless
21 22 23 24 25 |
# File 'lib/twilio-ruby/rest/serverless/v1.rb', line 21 def initialize(domain) super @version = 'v1' @services = nil end |
Instance Method Details
#services(sid = :unset) ⇒ Twilio::REST::Serverless::V1::ServiceContext, Twilio::REST::Serverless::V1::ServiceList
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/twilio-ruby/rest/serverless/v1.rb', line 31 def services(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @services ||= ServiceList.new self else ServiceContext.new(self, sid) end end |
#to_s ⇒ Object
Provide a user friendly representation
43 44 45 |
# File 'lib/twilio-ruby/rest/serverless/v1.rb', line 43 def to_s '<Twilio::REST::Serverless::V1>'; end |