Class: Cloopen::REST::InstanceResource

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/cloopen/rest/instance_resource.rb

Direct Known Subclasses

Account, AccountInfo, Calls, LandingCall, Message, Sms, SubAccount

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#uriObject (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

#inspectObject



13
14
15
# File 'lib/cloopen/rest/instance_resource.rb', line 13

def inspect
  "<#{self.class} @uri='#{@uri}'>"
end