Class: Randsum::Filter
- Inherits:
-
Object
- Object
- Randsum::Filter
- Defined in:
- lib/randsum/filters/filter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#rolls ⇒ Object
readonly
Returns the value of attribute rolls.
Instance Method Summary collapse
- #filter ⇒ Object
-
#initialize(quantity:, rolls:) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(quantity:, rolls:) ⇒ Filter
Returns a new instance of Filter.
5 6 7 8 |
# File 'lib/randsum/filters/filter.rb', line 5 def initialize(quantity:, rolls:) @quantity = quantity @rolls = rolls end |
Instance Attribute Details
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
3 4 5 |
# File 'lib/randsum/filters/filter.rb', line 3 def quantity @quantity end |
#rolls ⇒ Object (readonly)
Returns the value of attribute rolls.
3 4 5 |
# File 'lib/randsum/filters/filter.rb', line 3 def rolls @rolls end |
Instance Method Details
#filter ⇒ Object
10 11 12 |
# File 'lib/randsum/filters/filter.rb', line 10 def filter raise NotImplementedError end |