Class: Twilio::REST::IntelligenceBase
- Defined in:
- lib/twilio-ruby/rest/intelligence_base.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
-
#initialize(twilio) ⇒ IntelligenceBase
constructor
Initialize intelligence domain.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #v2 ⇒ Object
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ IntelligenceBase
Initialize intelligence domain
19 20 21 22 23 24 25 |
# File 'lib/twilio-ruby/rest/intelligence_base.rb', line 19 def initialize(twilio) super(twilio) @base_url = "https://intelligence.twilio.com" @host = "intelligence.twilio.com" @port = 443 @v2 = nil end |
Instance Method Details
#to_s ⇒ Object
Provide a user friendly representation
33 34 35 |
# File 'lib/twilio-ruby/rest/intelligence_base.rb', line 33 def to_s '<Twilio::REST::Intelligence::V2>'; end |
#v2 ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/intelligence_base.rb', line 27 def v2 @v2 ||= Intelligence::V2.new self end |