Class: Statium::Opta::Model::MatchInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/statium/opta/model/match_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#competitionObject

Returns the value of attribute competition



5
6
7
# File 'lib/statium/opta/model/match_info.rb', line 5

def competition
  @competition
end

#contestantsObject

Returns the value of attribute contestants



6
7
8
# File 'lib/statium/opta/model/match_info.rb', line 6

def contestants
  @contestants
end

#dateObject

Returns the value of attribute date



7
8
9
# File 'lib/statium/opta/model/match_info.rb', line 7

def date
  @date
end

#descriptionObject

Returns the value of attribute description



8
9
10
# File 'lib/statium/opta/model/match_info.rb', line 8

def description
  @description
end

#idObject

Returns the value of attribute id



9
10
11
# File 'lib/statium/opta/model/match_info.rb', line 9

def id
  @id
end

#lastUpdatedObject

Returns the value of attribute lastUpdated



10
11
12
# File 'lib/statium/opta/model/match_info.rb', line 10

def lastUpdated
  @lastUpdated
end

#rulesetObject

Returns the value of attribute ruleset



11
12
13
# File 'lib/statium/opta/model/match_info.rb', line 11

def ruleset
  @ruleset
end

#sportObject

Returns the value of attribute sport



12
13
14
# File 'lib/statium/opta/model/match_info.rb', line 12

def sport
  @sport
end

#stageObject

Returns the value of attribute stage



13
14
15
# File 'lib/statium/opta/model/match_info.rb', line 13

def stage
  @stage
end

#timeObject

Returns the value of attribute time



14
15
16
# File 'lib/statium/opta/model/match_info.rb', line 14

def time
  @time
end

#tournamentCalendarObject

Returns the value of attribute tournamentCalendar



15
16
17
# File 'lib/statium/opta/model/match_info.rb', line 15

def tournamentCalendar
  @tournamentCalendar
end

#venueObject

Returns the value of attribute venue



16
17
18
# File 'lib/statium/opta/model/match_info.rb', line 16

def venue
  @venue
end

#weekObject

Returns the value of attribute week



17
18
19
# File 'lib/statium/opta/model/match_info.rb', line 17

def week
  @week
end