Class: Plivo::Base::ResourceInterface

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/plivo/base/resource_interface.rb

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) ⇒ ResourceInterface

Returns a new instance of ResourceInterface.



5
6
7
8
9
# File 'lib/plivo/base/resource_interface.rb', line 5

def initialize(client, resource_list_json = nil)
  configure_client(client)
  configure_resource_uri
  parse_and_set(resource_list_json) if resource_list_json
end