Class: Refinery::Pages::Finder::FinderByTitle

Inherits:
Finder
  • Object
show all
Defined in:
lib/refinery/pages/finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(title) ⇒ FinderByTitle

Returns a new instance of FinderByTitle.



61
62
63
64
# File 'lib/refinery/pages/finder.rb', line 61

def initialize(title)
  @title = title
  @conditions = default_conditions
end

Instance Method Details

#default_conditions ⇒ Object



66
67
68
# File 'lib/refinery/pages/finder.rb', line 66

def default_conditions
  { :title => title }
end