Class: Attr::Gather::Filters::Filtering
- Inherits:
-
Object
- Object
- Attr::Gather::Filters::Filtering
- Defined in:
- lib/attr/gather/filters/filtering.rb
Overview
Information about a filtered item
Instance Attribute Summary collapse
-
#input ⇒ String
readonly
Input value that was filtered.
-
#path ⇒ Hash
readonly
Path of the filtered key.
-
#reason ⇒ String
readonly
Why the item was filtered.
Instance Method Summary collapse
-
#initialize(path, reason, input) ⇒ Filtering
constructor
A new instance of Filtering.
Constructor Details
#initialize(path, reason, input) ⇒ Filtering
Returns a new instance of Filtering.
19 20 21 22 23 |
# File 'lib/attr/gather/filters/filtering.rb', line 19 def initialize(path, reason, input) @path = path @reason = reason @input = input end |
Instance Attribute Details
#input ⇒ String (readonly)
Returns input value that was filtered.
16 17 18 19 20 21 22 23 24 |
# File 'lib/attr/gather/filters/filtering.rb', line 16 class Filtering attr_reader :path, :reason, :input def initialize(path, reason, input) @path = path @reason = reason @input = input end end |
#path ⇒ Hash (readonly)
Returns path of the filtered key.
16 17 18 19 20 21 22 23 24 |
# File 'lib/attr/gather/filters/filtering.rb', line 16 class Filtering attr_reader :path, :reason, :input def initialize(path, reason, input) @path = path @reason = reason @input = input end end |
#reason ⇒ String (readonly)
Returns why the item was filtered.
16 17 18 19 20 21 22 23 24 |
# File 'lib/attr/gather/filters/filtering.rb', line 16 class Filtering attr_reader :path, :reason, :input def initialize(path, reason, input) @path = path @reason = reason @input = input end end |