Class: Result
- Inherits:
-
Object
- Object
- Result
- Defined in:
- lib/remoteok/result.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
Returns the value of attribute company.
-
#date ⇒ Object
Returns the value of attribute date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#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
4 5 6 7 8 9 10 11 12 |
# File 'lib/remoteok/result.rb', line 4 def initialize(attrs = {}) @id = attrs[:data]['id'] @date = attrs[:data]['date'] @company = attrs[:data]['company'] = attrs[:data]['tags'] @description = attrs[:data]['description'] @url = attrs[:data]['url'] @logo = attrs[:data]['logo'] end |
Instance Attribute Details
#company ⇒ Object
Returns the value of attribute company.
2 3 4 |
# File 'lib/remoteok/result.rb', line 2 def company @company end |
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/remoteok/result.rb', line 2 def date @date end |
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/remoteok/result.rb', line 2 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/remoteok/result.rb', line 2 def id @id end |
#logo ⇒ Object
Returns the value of attribute logo.
2 3 4 |
# File 'lib/remoteok/result.rb', line 2 def logo @logo end |
#tags ⇒ Object
Returns the value of attribute tags.
2 3 4 |
# File 'lib/remoteok/result.rb', line 2 def end |
#url ⇒ Object
Returns the value of attribute url.
2 3 4 |
# File 'lib/remoteok/result.rb', line 2 def url @url end |