Class: Twilio::REST::Verify::V1
- Inherits:
-
Twilio::REST::Version
- Object
- Twilio::REST::Version
- Twilio::REST::Verify::V1
- Defined in:
- lib/twilio-ruby/rest/verify/v1.rb,
lib/twilio-ruby/rest/verify/v1/service.rb,
lib/twilio-ruby/rest/verify/v1/service/verification.rb,
lib/twilio-ruby/rest/verify/v1/service/verification_check.rb
Defined Under Namespace
Classes: ServiceContext, ServiceInstance, ServiceList, ServicePage
Instance Attribute Summary
Attributes inherited from Twilio::REST::Version
Instance Method Summary collapse
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Verify.
- #services(sid = :unset) ⇒ Twilio::REST::Verify::V1::ServiceContext, Twilio::REST::Verify::V1::ServiceList
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Twilio::REST::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 Verify
15 16 17 18 19 |
# File 'lib/twilio-ruby/rest/verify/v1.rb', line 15 def initialize(domain) super @version = 'v1' @services = nil end |
Instance Method Details
#services(sid = :unset) ⇒ Twilio::REST::Verify::V1::ServiceContext, Twilio::REST::Verify::V1::ServiceList
25 26 27 28 29 30 31 32 33 |
# File 'lib/twilio-ruby/rest/verify/v1.rb', line 25 def services(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @services ||= ServiceList.new self else ServiceContext.new(self, sid) end end |
#to_s ⇒ Object
Provide a user friendly representation
37 38 39 |
# File 'lib/twilio-ruby/rest/verify/v1.rb', line 37 def to_s '<Twilio::REST::Verify::V1>' end |