Class: Attr::Gather::Filters::Filtering

Inherits:
Object
  • Object
show all
Defined in:
lib/attr/gather/filters/filtering.rb

Overview

Information about a filtered item

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#inputString (readonly)

Returns input value that was filtered.

Returns:

  • (String)

    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

#pathHash (readonly)

Returns path of the filtered key.

Returns:

  • (Hash)

    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

#reasonString (readonly)

Returns why the item was filtered.

Returns:

  • (String)

    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