Module: Twilio::Account

Extended by:
Account
Includes:
Resource
Included in:
Account
Defined in:
lib/twilio/account.rb

Instance Method Summary collapse

Methods included from Resource

#[], #[]=

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Twilio::Resource

Instance Method Details

#attributesObject



6
7
8
# File 'lib/twilio/account.rb', line 6

def attributes
  @attributes.empty? ? reload! : @attributes
end

#friendly_name=(name) ⇒ Object



14
15
16
# File 'lib/twilio/account.rb', line 14

def friendly_name=(name)
  handle_response put "/Accounts/#{Twilio::ACCOUNT_SID}.json", :body => { :friendly_name => name }
end

#reload!Object



10
11
12
# File 'lib/twilio/account.rb', line 10

def reload!
  handle_response get "/Accounts/#{Twilio::ACCOUNT_SID}.json"
end