Method: SWD::Response#initialize

Defined in:
lib/swd/response.rb

#initialize(hash) ⇒ Response

Returns a new instance of Response.



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

def initialize(hash)
  @locations = hash[:locations]
  @location = @locations.first
  @raw = hash
end