Class: Nfler::Team
- Inherits:
-
Object
- Object
- Nfler::Team
- Defined in:
- lib/nfler/team.rb
Overview
Each of the Teams in the NFL
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#coach ⇒ Object
Returns the value of attribute coach.
-
#conference ⇒ Object
Returns the value of attribute conference.
-
#division ⇒ Object
Returns the value of attribute division.
-
#founded ⇒ Object
Returns the value of attribute founded.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#short ⇒ Object
Returns the value of attribute short.
-
#stadium ⇒ Object
Returns the value of attribute stadium.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Team
constructor
Creates a new Team.
Constructor Details
#initialize(data = {}) ⇒ Team
Creates a new Team
11 12 13 |
# File 'lib/nfler/team.rb', line 11 def initialize(data = {}) extract_data data end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
5 6 7 |
# File 'lib/nfler/team.rb', line 5 def city @city end |
#coach ⇒ Object
Returns the value of attribute coach.
5 6 7 |
# File 'lib/nfler/team.rb', line 5 def coach @coach end |
#conference ⇒ Object
Returns the value of attribute conference.
5 6 7 |
# File 'lib/nfler/team.rb', line 5 def conference @conference end |
#division ⇒ Object
Returns the value of attribute division.
5 6 7 |
# File 'lib/nfler/team.rb', line 5 def division @division end |
#founded ⇒ Object
Returns the value of attribute founded.
5 6 7 |
# File 'lib/nfler/team.rb', line 5 def founded @founded end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/nfler/team.rb', line 5 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
5 6 7 |
# File 'lib/nfler/team.rb', line 5 def owner @owner end |
#short ⇒ Object
Returns the value of attribute short.
5 6 7 |
# File 'lib/nfler/team.rb', line 5 def short @short end |
#stadium ⇒ Object
Returns the value of attribute stadium.
5 6 7 |
# File 'lib/nfler/team.rb', line 5 def stadium @stadium end |