Class: Statium::Opta::Model::Contestant

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clubNameObject

Returns the value of attribute clubName



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

def clubName
  @clubName
end

#idObject

Returns the value of attribute id



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

def id
  @id
end

#teamTypeObject

Returns the value of attribute teamType



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

def teamType
  @teamType
end

#typeObject

Returns the value of attribute type



7
8
9
# File 'lib/statium/opta/model/contestant.rb', line 7

def type
  @type
end