Class: FootballApi::Comment

Inherits:
BaseRequest show all
Defined in:
lib/football_api/comment.rb

Constant Summary

Constants inherited from BaseRequest

BaseRequest::RETRIES

Constants included from Symbolizer

Symbolizer::HASH_OR_ARRAY_KEYS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseRequest

action_query, get!, get_parameters, response

Methods included from Symbolizer

included

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

#commentObject

Returns the value of attribute comment.



3
4
5
# File 'lib/football_api/comment.rb', line 3

def comment
  @comment
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/football_api/comment.rb', line 3

def id
  @id
end

#importantObject

Returns the value of attribute important.



3
4
5
# File 'lib/football_api/comment.rb', line 3

def important
  @important
end

#is_goalObject

Returns the value of attribute is_goal.



3
4
5
# File 'lib/football_api/comment.rb', line 3

def is_goal
  @is_goal
end

#minuteObject

Returns the value of attribute minute.



3
4
5
# File 'lib/football_api/comment.rb', line 3

def minute
  @minute
end