Class: Dice::Result
- Inherits:
-
Object
- Object
- Dice::Result
- Defined in:
- lib/dice/result.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
Returns the value of attribute company.
-
#date ⇒ Object
Returns the value of attribute date.
-
#location ⇒ Object
Returns the value of attribute location.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(attrs = {}) ⇒ Result
Returns a new instance of Result.
5 6 7 8 9 10 11 |
# File 'lib/dice/result.rb', line 5 def initialize(attrs = {}) self.url = attrs[:data]['detailUrl'] self.title = attrs[:data]['jobTitle'] self.company = attrs[:data]['company'] self.location = attrs[:data]['location'] self.date = attrs[:data]['date'] end |
Instance Attribute Details
#company ⇒ Object
Returns the value of attribute company.
3 4 5 |
# File 'lib/dice/result.rb', line 3 def company @company end |
#date ⇒ Object
Returns the value of attribute date.
3 4 5 |
# File 'lib/dice/result.rb', line 3 def date @date end |
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/dice/result.rb', line 3 def location @location end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/dice/result.rb', line 3 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/dice/result.rb', line 3 def url @url end |