Class: Holoserve::Pair::Finder
- Inherits:
-
Object
- Object
- Holoserve::Pair::Finder
- Defined in:
- lib/holoserve/pair/finder.rb
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(pairs, request) ⇒ Finder
constructor
A new instance of Finder.
- #pair ⇒ Object
- #variant ⇒ Object
Constructor Details
#initialize(pairs, request) ⇒ Finder
Returns a new instance of Finder.
4 5 6 |
# File 'lib/holoserve/pair/finder.rb', line 4 def initialize(pairs, request) @pairs, @request = pairs, request end |
Instance Method Details
#id ⇒ Object
13 14 15 16 |
# File 'lib/holoserve/pair/finder.rb', line 13 def id return @id unless find_pair.nil? nil end |
#pair ⇒ Object
8 9 10 11 |
# File 'lib/holoserve/pair/finder.rb', line 8 def pair return @pair unless find_pair.nil? nil end |
#variant ⇒ Object
18 19 20 21 |
# File 'lib/holoserve/pair/finder.rb', line 18 def variant return @variant unless find_pair.nil? nil end |