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
- #v3 ⇒ Object
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ IntelligenceBase
Initialize intelligence domain
19 20 21 22 23 24 25 26 |
# 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 @v3 = nil end |
Instance Method Details
#to_s ⇒ Object
Provide a user friendly representation
38 39 40 |
# File 'lib/twilio-ruby/rest/intelligence_base.rb', line 38 def to_s '<Twilio::REST::Intelligence>'; end |
#v2 ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/intelligence_base.rb', line 28 def v2 @v2 ||= Intelligence::V2.new self end |
#v3 ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/intelligence_base.rb', line 32 def v3 @v3 ||= Intelligence::V3.new self end |