Class: Desk::Collection
- Inherits:
-
Array
- Object
- Array
- Desk::Collection
- Defined in:
- lib/desk/collection.rb
Instance Method Summary collapse
-
#initialize(response, klass) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(response, klass) ⇒ Collection
Returns a new instance of Collection.
4 5 6 7 8 |
# File 'lib/desk/collection.rb', line 4 def initialize(response, klass) @response = response super response["_embedded"]["entries"] coerce_into klass end |