Class: Ratlas::Response

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

Instance Method Summary collapse

Constructor Details

#initialize(json, as) ⇒ Response

Returns a new instance of Response.



5
6
7
# File 'lib/ratlas/response.rb', line 5

def initialize(json, as)
  super(json[as].map{|j| Hashie::Mash.new(j)})
end