Class: Twilio::REST::Verify::V2
- Inherits:
-
Twilio::REST::Version
- Object
- Twilio::REST::Version
- Twilio::REST::Verify::V2
- Defined in:
- lib/twilio-ruby/rest/verify/v2.rb,
lib/twilio-ruby/rest/verify/v2/service.rb,
lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb,
lib/twilio-ruby/rest/verify/v2/service/verification.rb,
lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb,
lib/twilio-ruby/rest/verify/v2/service/verification_check.rb,
lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb
Defined Under Namespace
Classes: ServiceContext, ServiceInstance, ServiceList, ServicePage
Instance Attribute Summary
Attributes inherited from Twilio::REST::Version
Instance Method Summary collapse
-
#initialize(domain) ⇒ V2
constructor
Initialize the V2 version of Verify.
- #services(sid = :unset) ⇒ Twilio::REST::Verify::V2::ServiceContext, Twilio::REST::Verify::V2::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) ⇒ V2
Initialize the V2 version of Verify
15 16 17 18 19 |
# File 'lib/twilio-ruby/rest/verify/v2.rb', line 15 def initialize(domain) super @version = 'v2' @services = nil end |
Instance Method Details
#services(sid = :unset) ⇒ Twilio::REST::Verify::V2::ServiceContext, Twilio::REST::Verify::V2::ServiceList
26 27 28 29 30 31 32 33 34 |
# File 'lib/twilio-ruby/rest/verify/v2.rb', line 26 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
38 39 40 |
# File 'lib/twilio-ruby/rest/verify/v2.rb', line 38 def to_s '<Twilio::REST::Verify::V2>' end |