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

Inherits:
Finder
  • Object
show all
Defined in:
pages/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 'pages/lib/refinery/pages/finder.rb', line 61

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

Instance Method Details

#default_conditionsObject



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

def default_conditions
  { :title => title }
end