Class: Twilio::REST::Accounts
- Defined in:
- lib/twilio-ruby/rest/accounts.rb,
lib/twilio-ruby/rest/accounts/v1.rb,
lib/twilio-ruby/rest/accounts/v1/credential.rb,
lib/twilio-ruby/rest/accounts/v1/credential/aws.rb,
lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb,
lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb,
lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
- #auth_token_promotion ⇒ Twilio::REST::Accounts::V1::AuthTokenPromotionInstance
- #credentials ⇒ Twilio::REST::Accounts::V1::CredentialInstance
-
#initialize(twilio) ⇒ Accounts
constructor
Initialize the Accounts Domain.
- #secondary_auth_token ⇒ Twilio::REST::Accounts::V1::SecondaryAuthTokenInstance
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#v1 ⇒ Object
Version v1 of accounts.
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Accounts
Initialize the Accounts Domain
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/twilio-ruby/rest/accounts.rb', line 14 def initialize(twilio) super @base_url = 'https://accounts.twilio.com' @host = 'accounts.twilio.com' @port = 443 # Versions @v1 = nil end |
Instance Method Details
#auth_token_promotion ⇒ Twilio::REST::Accounts::V1::AuthTokenPromotionInstance
33 34 35 |
# File 'lib/twilio-ruby/rest/accounts.rb', line 33 def auth_token_promotion self.v1.auth_token_promotion() end |
#credentials ⇒ Twilio::REST::Accounts::V1::CredentialInstance
39 40 41 |
# File 'lib/twilio-ruby/rest/accounts.rb', line 39 def credentials self.v1.credentials() end |
#secondary_auth_token ⇒ Twilio::REST::Accounts::V1::SecondaryAuthTokenInstance
45 46 47 |
# File 'lib/twilio-ruby/rest/accounts.rb', line 45 def secondary_auth_token self.v1.secondary_auth_token() end |
#to_s ⇒ Object
Provide a user friendly representation
51 52 53 |
# File 'lib/twilio-ruby/rest/accounts.rb', line 51 def to_s '#<Twilio::REST::Accounts>' end |