Class: HonestRenter::Filter
- Inherits:
-
Object
- Object
- HonestRenter::Filter
- Defined in:
- lib/requests/filter.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(key, value) ⇒ Filter
Returns a new instance of Filter.
4 5 6 7 |
# File 'lib/requests/filter.rb', line 4 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/requests/filter.rb', line 3 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/requests/filter.rb', line 3 def value @value end |