Class: Nfler::Team

Inherits:
Object
  • Object
show all
Defined in:
lib/nfler/team.rb

Overview

Each of the Teams in the NFL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Team

Creates a new Team

Parameters:

  • data (Hash) (defaults to: {})

    for team (name, short, area, stadium, founded, joined, coach, owner)



11
12
13
# File 'lib/nfler/team.rb', line 11

def initialize(data = {})
  extract_data data
end

Instance Attribute Details

#cityObject

Returns the value of attribute city.



5
6
7
# File 'lib/nfler/team.rb', line 5

def city
  @city
end

#coachObject

Returns the value of attribute coach.



5
6
7
# File 'lib/nfler/team.rb', line 5

def coach
  @coach
end

#conferenceObject

Returns the value of attribute conference.



5
6
7
# File 'lib/nfler/team.rb', line 5

def conference
  @conference
end

#divisionObject

Returns the value of attribute division.



5
6
7
# File 'lib/nfler/team.rb', line 5

def division
  @division
end

#foundedObject

Returns the value of attribute founded.



5
6
7
# File 'lib/nfler/team.rb', line 5

def founded
  @founded
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/nfler/team.rb', line 5

def name
  @name
end

#ownerObject

Returns the value of attribute owner.



5
6
7
# File 'lib/nfler/team.rb', line 5

def owner
  @owner
end

#shortObject

Returns the value of attribute short.



5
6
7
# File 'lib/nfler/team.rb', line 5

def short
  @short
end

#stadiumObject

Returns the value of attribute stadium.



5
6
7
# File 'lib/nfler/team.rb', line 5

def stadium
  @stadium
end