Class: Statium::Opta::Model::Scores

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Scores

Returns a new instance of Scores



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

def initialize(params)
  @ft = Score.new(params['ft'])
  @total = Score.new(params['total'])
end

Instance Attribute Details

#ftObject

Returns the value of attribute ft



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

def ft
  @ft
end

#totalObject

Returns the value of attribute total



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

def total
  @total
end