Class: Plivo::Resources::AccountInterface
Constant Summary
Constants included
from Utils
Utils::TYPE_WHITELIST
Instance Method Summary
collapse
Methods included from Utils
expected_type?, expected_value?, raise_invalid_request, valid_account?, valid_mainaccount?, valid_param?, valid_signature?, valid_subaccount?
Constructor Details
#initialize(client, resource_list_json = nil) ⇒ AccountInterface
165
166
167
168
169
170
|
# File 'lib/plivo/resources/accounts.rb', line 165
def initialize(client, resource_list_json = nil)
@_name = 'Account'
@_resource_type = Account
@_identifier_string = 'auth_id'
super
end
|
Instance Method Details
#details ⇒ Object
172
173
174
|
# File 'lib/plivo/resources/accounts.rb', line 172
def details
perform_get(@_client.auth_id)
end
|
#update(details) ⇒ Object
176
177
178
|
# File 'lib/plivo/resources/accounts.rb', line 176
def update(details)
Account.new(@_client, resource_id: @_client.auth_id).update(details)
end
|