Class: Attr::Gather::Filters::Result
- Inherits:
-
Object
- Object
- Attr::Gather::Filters::Result
- Defined in:
- lib/attr/gather/filters/result.rb
Overview
Result of a filter
Instance Attribute Summary collapse
-
#filterings ⇒ Array<Attr::Gather::Filtering>
readonly
Info about filtered items.
-
#value ⇒ Hash
readonly
The filtered hash.
Instance Method Summary collapse
-
#initialize(value, filterings) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(value, filterings) ⇒ Result
Returns a new instance of Result.
16 17 18 19 |
# File 'lib/attr/gather/filters/result.rb', line 16 def initialize(value, filterings) @value = value @filterings = filterings end |
Instance Attribute Details
#filterings ⇒ Array<Attr::Gather::Filtering> (readonly)
Returns info about filtered items.
13 14 15 16 17 18 19 20 |
# File 'lib/attr/gather/filters/result.rb', line 13 class Result attr_reader :value, :filterings def initialize(value, filterings) @value = value @filterings = filterings end end |
#value ⇒ Hash (readonly)
Returns the filtered hash.
13 14 15 16 17 18 19 20 |
# File 'lib/attr/gather/filters/result.rb', line 13 class Result attr_reader :value, :filterings def initialize(value, filterings) @value = value @filterings = filterings end end |