Class: Cloopen::REST::InstanceResource
- Inherits:
-
Object
- Object
- Cloopen::REST::InstanceResource
- Includes:
- Utils
- Defined in:
- lib/cloopen/rest/instance_resource.rb
Direct Known Subclasses
Account, AccountInfo, Calls, LandingCall, Message, Sms, SubAccount
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, client, params = nil) ⇒ InstanceResource
constructor
A new instance of InstanceResource.
- #inspect ⇒ Object
Methods included from Utils
#beautify_hash, #build_body, #cloopfy, #decloopfy, #downcase_first, #prase_body
Constructor Details
#initialize(uri, client, params = nil) ⇒ InstanceResource
Returns a new instance of InstanceResource.
8 9 10 11 |
# File 'lib/cloopen/rest/instance_resource.rb', line 8 def initialize(uri, client, params=nil) @uri, @client = uri, client params and set_up_properties_from params end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/cloopen/rest/instance_resource.rb', line 6 def uri @uri end |
Instance Method Details
#inspect ⇒ Object
13 14 15 |
# File 'lib/cloopen/rest/instance_resource.rb', line 13 def inspect "<#{self.class} @uri='#{@uri}'>" end |