Class: Her::Collection
- Inherits:
-
Array
- Object
- Array
- Her::Collection
- Defined in:
- lib/her/collection.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(items = [], metadata = {}, errors = {}) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(items = [], metadata = {}, errors = {}) ⇒ Collection
Returns a new instance of Collection.
6 7 8 9 10 |
# File 'lib/her/collection.rb', line 6 def initialize(items=[], ={}, errors={}) super(items) @metadata = @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
3 4 5 |
# File 'lib/her/collection.rb', line 3 def errors @errors end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
3 4 5 |
# File 'lib/her/collection.rb', line 3 def @metadata end |