Class: Holoserve::Pair::Finder

Inherits:
Object
  • Object
show all
Defined in:
lib/holoserve/pair/finder.rb

Instance Method Summary collapse

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

#idObject



13
14
15
16
# File 'lib/holoserve/pair/finder.rb', line 13

def id
  return @id unless find_pair.nil?
  nil
end

#pairObject



8
9
10
11
# File 'lib/holoserve/pair/finder.rb', line 8

def pair
  return @pair unless find_pair.nil?
  nil
end

#variantObject



18
19
20
21
# File 'lib/holoserve/pair/finder.rb', line 18

def variant
  return @variant unless find_pair.nil?
  nil
end