Class: Plivo::Resources::AccountInterface
Constant Summary
Constants included
from Utils
Utils::TYPE_WHITELIST
Instance Method Summary
collapse
Methods included from Utils
GetSortedQueryParamString?, compute_signatureV3?, expected_type?, expected_value?, generate_url?, getMapFromQueryString?, is_one_among_string_url?, multi_valid_param?, raise_invalid_request, valid_account?, valid_date_format?, valid_mainaccount?, valid_multiple_destination_integers?, valid_multiple_destination_nos?, valid_param?, valid_range?, valid_signature?, valid_signatureV3?, valid_subaccount?, valid_url?
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
|