Class: Statium::Opta::Model::Score

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Score

Returns a new instance of Score



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

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

Instance Attribute Details

#awayObject

Returns the value of attribute away



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

def away
  @away
end

#homeObject

Returns the value of attribute home



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

def home
  @home
end