Class: Statium::Opta::Model::Score
- Inherits:
-
Object
- Object
- Statium::Opta::Model::Score
- Defined in:
- lib/statium/opta/model/score.rb
Instance Attribute Summary collapse
-
#away ⇒ Object
Returns the value of attribute away.
-
#home ⇒ Object
Returns the value of attribute home.
Instance Method Summary collapse
-
#initialize(params) ⇒ Score
constructor
A new instance of Score.
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
#away ⇒ Object
Returns the value of attribute away
5 6 7 |
# File 'lib/statium/opta/model/score.rb', line 5 def away @away end |
#home ⇒ Object
Returns the value of attribute home
6 7 8 |
# File 'lib/statium/opta/model/score.rb', line 6 def home @home end |