Class: SportsDataApi::Ncaafb::Venue
- Inherits:
-
Object
- Object
- SportsDataApi::Ncaafb::Venue
- Defined in:
- lib/sports_data_api/ncaafb/venue.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#capacity ⇒ Object
readonly
Returns the value of attribute capacity.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#surface ⇒ Object
readonly
Returns the value of attribute surface.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#zip ⇒ Object
readonly
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(venue_hash) ⇒ Venue
constructor
A new instance of Venue.
Constructor Details
#initialize(venue_hash) ⇒ Venue
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 5 def initialize(venue_hash) if venue_hash @id = venue_hash['id'] @name = venue_hash['name'] @address = venue_hash['address'] @city = venue_hash['city'] @state = venue_hash['state'] @zip = venue_hash['zip'] @country = venue_hash['country'] @capacity = venue_hash['capacity'] @type = venue_hash['type'] @surface = venue_hash['surface'] end end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def address @address end |
#capacity ⇒ Object (readonly)
Returns the value of attribute capacity.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def capacity @capacity end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def city @city end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def country @country end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def name @name end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def state @state end |
#surface ⇒ Object (readonly)
Returns the value of attribute surface.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def surface @surface end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def type @type end |
#zip ⇒ Object (readonly)
Returns the value of attribute zip.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4 def zip @zip end |