Class: Statium::Opta::Model::Contestant
- Inherits:
-
Object
- Object
- Statium::Opta::Model::Contestant
- Defined in:
- lib/statium/opta/model/contestant.rb
Instance Attribute Summary collapse
-
#clubName ⇒ Object
Returns the value of attribute clubName.
-
#id ⇒ Object
Returns the value of attribute id.
-
#teamType ⇒ Object
Returns the value of attribute teamType.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ Contestant
constructor
A new instance of Contestant.
Constructor Details
#initialize(params) ⇒ Contestant
Returns a new instance of Contestant
10 11 12 13 14 |
# File 'lib/statium/opta/model/contestant.rb', line 10 def initialize(params) params.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#clubName ⇒ Object
Returns the value of attribute clubName
6 7 8 |
# File 'lib/statium/opta/model/contestant.rb', line 6 def clubName @clubName end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/statium/opta/model/contestant.rb', line 5 def id @id end |
#teamType ⇒ Object
Returns the value of attribute teamType
8 9 10 |
# File 'lib/statium/opta/model/contestant.rb', line 8 def teamType @teamType end |
#type ⇒ Object
Returns the value of attribute type
7 8 9 |
# File 'lib/statium/opta/model/contestant.rb', line 7 def type @type end |