Class: Infostrada::Referee

Inherits:
Object
  • Object
show all
Defined in:
lib/infostrada/referee.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Referee

Returns a new instance of Referee.



5
6
7
8
9
10
11
# File 'lib/infostrada/referee.rb', line 5

def initialize(hash)
  @id = hash.delete('n_RefereeID')

  @name = hash.delete('c_Referee')

  @nation = Nation.new(hash, 'referee')
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/infostrada/referee.rb', line 3

def id
  @id
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/infostrada/referee.rb', line 3

def name
  @name
end

#nationObject

Returns the value of attribute nation.



3
4
5
# File 'lib/infostrada/referee.rb', line 3

def nation
  @nation
end