Class: Kashiwamochi::Search
- Inherits:
-
Object
- Object
- Kashiwamochi::Search
- Defined in:
- lib/kashiwamochi/search.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Search
constructor
A new instance of Search.
- #inspect ⇒ Object
Constructor Details
#initialize(key, value) ⇒ Search
Returns a new instance of Search.
5 6 7 8 |
# File 'lib/kashiwamochi/search.rb', line 5 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/kashiwamochi/search.rb', line 3 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/kashiwamochi/search.rb', line 3 def value @value end |
Instance Method Details
#inspect ⇒ Object
10 11 12 |
# File 'lib/kashiwamochi/search.rb', line 10 def inspect "#<Search #{key}: #{value}>" end |