Method: UCSManage#initialize

Defined in:
lib/ucslib/manage.rb

#initialize(tokenjson) ⇒ UCSManage

Returns a new instance of UCSManage.



20
21
22
23
24
25
26
# File 'lib/ucslib/manage.rb', line 20

def initialize(tokenjson)

@cookie  = "#{JSON.parse(tokenjson)['cookie']}"
ip       = "#{JSON.parse(tokenjson)['ip']}"
@url 	 = "https://#{ip}/nuova"

end