class Twilio::REST::Accounts
Public Class Methods
new(twilio)
click to toggle source
Initialize the Accounts
Domain
Calls superclass method
Twilio::REST::Domain::new
# File lib/twilio-ruby/rest/accounts.rb 14 def initialize(twilio) 15 super 16 17 @base_url = 'https://accounts.twilio.com' 18 @host = 'accounts.twilio.com' 19 @port = 443 20 21 # Versions 22 @v1 = nil 23 end
Public Instance Methods
auth_token_promotion()
click to toggle source
@return [Twilio::REST::Accounts::V1::AuthTokenPromotionInstance]
# File lib/twilio-ruby/rest/accounts.rb 33 def auth_token_promotion 34 self.v1.auth_token_promotion() 35 end
credentials()
click to toggle source
@return [Twilio::REST::Accounts::V1::CredentialInstance]
# File lib/twilio-ruby/rest/accounts.rb 39 def credentials 40 self.v1.credentials() 41 end
secondary_auth_token()
click to toggle source
@return [Twilio::REST::Accounts::V1::SecondaryAuthTokenInstance]
# File lib/twilio-ruby/rest/accounts.rb 45 def secondary_auth_token 46 self.v1.secondary_auth_token() 47 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/accounts.rb 51 def to_s 52 '#<Twilio::REST::Accounts>' 53 end
v1()
click to toggle source
Version
v1 of accounts
# File lib/twilio-ruby/rest/accounts.rb 27 def v1 28 @v1 ||= V1.new self 29 end