Class: LocalVault::KeyLookup::Result
- Inherits:
-
Struct
- Object
- Struct
- LocalVault::KeyLookup::Result
- Defined in:
- lib/localvault/key_lookup.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#matches ⇒ Object
Returns the value of attribute matches.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
3 4 5 |
# File 'lib/localvault/key_lookup.rb', line 3 def key @key end |
#matches ⇒ Object
Returns the value of attribute matches
3 4 5 |
# File 'lib/localvault/key_lookup.rb', line 3 def matches @matches end |
#value ⇒ Object
Returns the value of attribute value
3 4 5 |
# File 'lib/localvault/key_lookup.rb', line 3 def value @value end |
Instance Method Details
#exact? ⇒ Boolean
4 5 6 |
# File 'lib/localvault/key_lookup.rb', line 4 def exact? !value.nil? end |
#multiple_matches? ⇒ Boolean
12 13 14 |
# File 'lib/localvault/key_lookup.rb', line 12 def multiple_matches? matches.size > 1 end |
#single_match? ⇒ Boolean
8 9 10 |
# File 'lib/localvault/key_lookup.rb', line 8 def single_match? matches.size == 1 end |