Class: Kiva::Filter
- Inherits:
-
Object
- Object
- Kiva::Filter
- Defined in:
- lib/kiva.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize ⇒ Filter
Returns a new instance of Filter.
598 599 600 |
# File 'lib/kiva.rb', line 598 def initialize @params = {} end |
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
597 598 599 |
# File 'lib/kiva.rb', line 597 def params @params end |
Instance Method Details
#[](key) ⇒ Object
606 607 608 |
# File 'lib/kiva.rb', line 606 def [] key @params[key] end |
#[]=(key, value) ⇒ Object
602 603 604 |
# File 'lib/kiva.rb', line 602 def []= key, value @params[key] = value end |