Class: Twilio::REST::AccountsBase

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/accounts_base.rb

Direct Known Subclasses

Accounts

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ AccountsBase

Initialize accounts domain

Parameters:

  • twilio
    • The twilio client



19
20
21
22
23
24
25
# File 'lib/twilio-ruby/rest/accounts_base.rb', line 19

def initialize(twilio)
  super(twilio)
  @base_url =  "https://accounts.twilio.com"
  @host = "accounts.twilio.com"
  @port = 443
  @v1 = nil
end

Instance Method Details

#to_sObject

Provide a user friendly representation



33
34
35
# File 'lib/twilio-ruby/rest/accounts_base.rb', line 33

def to_s
  '<Twilio::REST::Accounts::V1>';
end

#v1Object



27
28
29
# File 'lib/twilio-ruby/rest/accounts_base.rb', line 27

def v1
  @v1 ||= Accounts::V1.new self
end