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