Class: Plivo::Base::Resource

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

Constant Summary

Constants included from Utils

Utils::TYPE_WHITELIST

Instance Attribute Summary collapse

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, options = nil) ⇒ Resource

Returns a new instance of Resource.



7
8
9
10
11
# File 'lib/plivo/base/resource.rb', line 7

def initialize(client, options = nil)
  configure_client(client)
  configure_options(options) if options
  configure_resource_uri
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/plivo/base/resource.rb', line 4

def id
  @id
end