Class: Twilio::REST::Preview::Understand
- Defined in:
- lib/twilio-ruby/rest/preview/understand.rb,
lib/twilio-ruby/rest/preview/understand/service.rb,
lib/twilio-ruby/rest/preview/understand/service/query.rb,
lib/twilio-ruby/rest/preview/understand/service/intent.rb,
lib/twilio-ruby/rest/preview/understand/service/field_type.rb,
lib/twilio-ruby/rest/preview/understand/service/model_build.rb,
lib/twilio-ruby/rest/preview/understand/service/intent/field.rb,
lib/twilio-ruby/rest/preview/understand/service/intent/sample.rb,
lib/twilio-ruby/rest/preview/understand/service/field_type/field_value.rb
Defined Under Namespace
Classes: ServiceContext, ServiceInstance, ServiceList, ServicePage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
-
#initialize(domain) ⇒ Understand
constructor
Initialize the Understand version of Preview.
- #services(sid = :unset) ⇒ Twilio::REST::Preview::Understand::ServiceContext, Twilio::REST::Preview::Understand::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) ⇒ Understand
Initialize the Understand version of Preview
13 14 15 16 17 |
# File 'lib/twilio-ruby/rest/preview/understand.rb', line 13 def initialize(domain) super @version = 'understand' @services = nil end |
Instance Method Details
#services(sid = :unset) ⇒ Twilio::REST::Preview::Understand::ServiceContext, Twilio::REST::Preview::Understand::ServiceList
23 24 25 26 27 28 29 30 31 |
# File 'lib/twilio-ruby/rest/preview/understand.rb', line 23 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
35 36 37 |
# File 'lib/twilio-ruby/rest/preview/understand.rb', line 35 def to_s '<Twilio::REST::Preview::Understand>' end |