Class: ChambaSearchMx::Finder
- Inherits:
-
Object
- Object
- ChambaSearchMx::Finder
- Defined in:
- lib/chamba_search_mx/finder.rb
Overview
finds jobs and returns simplified objects of them selfs
Instance Attribute Summary collapse
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
Instance Method Summary collapse
-
#find(search, options = {}) ⇒ Class
Self.
-
#initialize(options = {}) ⇒ Finder
constructor
A new instance of Finder.
Constructor Details
#initialize(options = {}) ⇒ Finder
Returns a new instance of Finder.
8 9 10 11 12 13 |
# File 'lib/chamba_search_mx/finder.rb', line 8 def initialize( = {}) @formatter = [:formatter] || ChambaSearchMx::UrlFormatter.new @pagination = [:pagination] || ChambaSearchMx::Pagination.new @search_page = [:search_page] || ChambaSearchMx::SearchPage.new @job = [:job] || ChambaSearchMx::JobPage.new end |
Instance Attribute Details
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
7 8 9 |
# File 'lib/chamba_search_mx/finder.rb', line 7 def jobs @jobs end |
Instance Method Details
#find(search, options = {}) ⇒ Class
Returns self.
19 20 21 22 23 24 25 |
# File 'lib/chamba_search_mx/finder.rb', line 19 def find(search, = {}) @search = search @options = validate_arguments find_jobs self end |