Class: ChambaSearchMx::JobDecorator
- Inherits:
-
Object
- Object
- ChambaSearchMx::JobDecorator
- Defined in:
- lib/chamba_search_mx/job_decorator.rb
Overview
cleaner job representation
Instance Method Summary collapse
- #businesses ⇒ Object
- #company ⇒ Object
- #contact_email ⇒ Object
- #contact_name ⇒ Object
- #description ⇒ Object
-
#initialize(options = {}) ⇒ JobDecorator
constructor
A new instance of JobDecorator.
- #sector ⇒ Object
- #title ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ JobDecorator
Returns a new instance of JobDecorator.
5 6 7 |
# File 'lib/chamba_search_mx/job_decorator.rb', line 5 def initialize( = {}) = end |
Instance Method Details
#businesses ⇒ Object
9 10 11 |
# File 'lib/chamba_search_mx/job_decorator.rb', line 9 def businesses [:businesses] end |
#company ⇒ Object
13 14 15 |
# File 'lib/chamba_search_mx/job_decorator.rb', line 13 def company [:company] end |
#contact_email ⇒ Object
17 18 19 |
# File 'lib/chamba_search_mx/job_decorator.rb', line 17 def contact_email [:contact_email] end |
#contact_name ⇒ Object
21 22 23 |
# File 'lib/chamba_search_mx/job_decorator.rb', line 21 def contact_name [:contact_name] end |
#description ⇒ Object
25 26 27 |
# File 'lib/chamba_search_mx/job_decorator.rb', line 25 def description [:description] end |
#sector ⇒ Object
29 30 31 |
# File 'lib/chamba_search_mx/job_decorator.rb', line 29 def sector [:sector] end |
#title ⇒ Object
33 34 35 |
# File 'lib/chamba_search_mx/job_decorator.rb', line 33 def title [:title] end |
#url ⇒ Object
37 38 39 |
# File 'lib/chamba_search_mx/job_decorator.rb', line 37 def url [:url] end |