Method: Wdt::Response#initialize

Defined in:
lib/wdt/response.rb

#initialize(response_hash) ⇒ Response

Returns a new instance of Response.



5
6
7
8
9
# File 'lib/wdt/response.rb', line 5

def initialize(response_hash)
  self.code    = response_hash["code"]
  self.message = response_hash["message"]
  self.raw_data = response_hash
end