Class: FootballApi::Comment
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- FootballApi::Comment
- Defined in:
- lib/football_api/comment.rb
Constant Summary
Constants inherited from BaseRequest
Constants included from Symbolizer
Symbolizer::HASH_OR_ARRAY_KEYS
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#id ⇒ Object
Returns the value of attribute id.
-
#important ⇒ Object
Returns the value of attribute important.
-
#is_goal ⇒ Object
Returns the value of attribute is_goal.
-
#minute ⇒ Object
Returns the value of attribute minute.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Comment
constructor
A new instance of Comment.
Methods inherited from BaseRequest
action_query, get!, get_parameters, response
Methods included from Symbolizer
Constructor Details
#initialize(hash = {}) ⇒ Comment
Returns a new instance of Comment.
5 6 7 8 9 10 11 |
# File 'lib/football_api/comment.rb', line 5 def initialize(hash = {}) @id = hash[:id] @important = hash[:important] @is_goal = hash[:isgoal] @minute = hash[:minute] @comment = hash[:comment] end |
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
3 4 5 |
# File 'lib/football_api/comment.rb', line 3 def comment @comment end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/football_api/comment.rb', line 3 def id @id end |
#important ⇒ Object
Returns the value of attribute important.
3 4 5 |
# File 'lib/football_api/comment.rb', line 3 def important @important end |
#is_goal ⇒ Object
Returns the value of attribute is_goal.
3 4 5 |
# File 'lib/football_api/comment.rb', line 3 def is_goal @is_goal end |
#minute ⇒ Object
Returns the value of attribute minute.
3 4 5 |
# File 'lib/football_api/comment.rb', line 3 def minute @minute end |