Class: Ratlas::Response
- Inherits:
-
Array
- Object
- Array
- Ratlas::Response
- Defined in:
- lib/ratlas/response.rb
Instance Method Summary collapse
-
#initialize(json, as) ⇒ Response
constructor
A new instance of Response.
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 |