Class: Statium::Opta::Model::MatchDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ MatchDetails

Returns a new instance of MatchDetails



9
10
11
12
13
14
15
# File 'lib/statium/opta/model/match_details.rb', line 9

def initialize(params)
  params.each do |key, value|
    instance_variable_set("@#{key}", value)
  end

  @scores = Scores.new(params['scores'])
end

Instance Attribute Details

#matchStatusObject

Returns the value of attribute matchStatus



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

def matchStatus
  @matchStatus
end

#matchTimeObject

Returns the value of attribute matchTime



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

def matchTime
  @matchTime
end

#scoresObject

Returns the value of attribute scores



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

def scores
  @scores
end