Class: Viberroo::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/viberroo/response.rb

Class Method Summary collapse

Class Method Details

.init(params) ⇒ Object



6
7
8
9
10
# File 'lib/viberroo/response.rb', line 6

def init(params)
  @@os = RecursiveOpenStruct.new params.to_h
  @@os.user_id = user_id
  @@os
end