Class: Plivo::Resources::AccountInterface
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
158
159
160
161
162
163
|
# File 'lib/plivo/resources/accounts.rb', line 158
def initialize(client, resource_list_json = nil)
@_name = 'Account'
@_resource_type = Account
@_identifier_string = 'auth_id'
super
end
|
Instance Method Details
#details ⇒ Object
165
166
167
|
# File 'lib/plivo/resources/accounts.rb', line 165
def details
perform_get(@_client.auth_id)
end
|
#update(details) ⇒ Object
169
170
171
|
# File 'lib/plivo/resources/accounts.rb', line 169
def update(details)
Account.new(@_client, resource_id: @_client.auth_id).update(details)
end
|