Class: Infostrada::Referee
- Inherits:
-
Object
- Object
- Infostrada::Referee
- Defined in:
- lib/infostrada/referee.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nation ⇒ Object
Returns the value of attribute nation.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Referee
constructor
A new instance of Referee.
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
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/infostrada/referee.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/infostrada/referee.rb', line 3 def name @name end |
#nation ⇒ Object
Returns the value of attribute nation.
3 4 5 |
# File 'lib/infostrada/referee.rb', line 3 def nation @nation end |