Class: Statium::Opta::Model::MatchInfo
- Inherits:
-
Object
- Object
- Statium::Opta::Model::MatchInfo
- Defined in:
- lib/statium/opta/model/match_info.rb
Instance Attribute Summary collapse
-
#competition ⇒ Object
Returns the value of attribute competition.
-
#contestants ⇒ Object
Returns the value of attribute contestants.
-
#date ⇒ Object
Returns the value of attribute date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#lastUpdated ⇒ Object
Returns the value of attribute lastUpdated.
-
#ruleset ⇒ Object
Returns the value of attribute ruleset.
-
#sport ⇒ Object
Returns the value of attribute sport.
-
#stage ⇒ Object
Returns the value of attribute stage.
-
#time ⇒ Object
Returns the value of attribute time.
-
#tournamentCalendar ⇒ Object
Returns the value of attribute tournamentCalendar.
-
#venue ⇒ Object
Returns the value of attribute venue.
-
#week ⇒ Object
Returns the value of attribute week.
Instance Method Summary collapse
-
#initialize(params) ⇒ MatchInfo
constructor
A new instance of MatchInfo.
Constructor Details
#initialize(params) ⇒ MatchInfo
Returns a new instance of MatchInfo
19 20 21 22 23 |
# File 'lib/statium/opta/model/match_info.rb', line 19 def initialize(params) params.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#competition ⇒ Object
Returns the value of attribute competition
5 6 7 |
# File 'lib/statium/opta/model/match_info.rb', line 5 def competition @competition end |
#contestants ⇒ Object
Returns the value of attribute contestants
6 7 8 |
# File 'lib/statium/opta/model/match_info.rb', line 6 def contestants @contestants end |
#date ⇒ Object
Returns the value of attribute date
7 8 9 |
# File 'lib/statium/opta/model/match_info.rb', line 7 def date @date end |
#description ⇒ Object
Returns the value of attribute description
8 9 10 |
# File 'lib/statium/opta/model/match_info.rb', line 8 def description @description end |
#id ⇒ Object
Returns the value of attribute id
9 10 11 |
# File 'lib/statium/opta/model/match_info.rb', line 9 def id @id end |
#lastUpdated ⇒ Object
Returns the value of attribute lastUpdated
10 11 12 |
# File 'lib/statium/opta/model/match_info.rb', line 10 def lastUpdated @lastUpdated end |
#ruleset ⇒ Object
Returns the value of attribute ruleset
11 12 13 |
# File 'lib/statium/opta/model/match_info.rb', line 11 def ruleset @ruleset end |
#sport ⇒ Object
Returns the value of attribute sport
12 13 14 |
# File 'lib/statium/opta/model/match_info.rb', line 12 def sport @sport end |
#stage ⇒ Object
Returns the value of attribute stage
13 14 15 |
# File 'lib/statium/opta/model/match_info.rb', line 13 def stage @stage end |
#time ⇒ Object
Returns the value of attribute time
14 15 16 |
# File 'lib/statium/opta/model/match_info.rb', line 14 def time @time end |
#tournamentCalendar ⇒ Object
Returns the value of attribute tournamentCalendar
15 16 17 |
# File 'lib/statium/opta/model/match_info.rb', line 15 def tournamentCalendar @tournamentCalendar end |
#venue ⇒ Object
Returns the value of attribute venue
16 17 18 |
# File 'lib/statium/opta/model/match_info.rb', line 16 def venue @venue end |
#week ⇒ Object
Returns the value of attribute week
17 18 19 |
# File 'lib/statium/opta/model/match_info.rb', line 17 def week @week end |