Class: SportsDataApi::Ncaafb::Venue

Inherits:
Object
  • Object
show all
Defined in:
lib/sports_data_api/ncaafb/venue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject (readonly)

Returns the value of attribute address.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def address
  @address
end

#capacityObject (readonly)

Returns the value of attribute capacity.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def capacity
  @capacity
end

#cityObject (readonly)

Returns the value of attribute city.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def city
  @city
end

#countryObject (readonly)

Returns the value of attribute country.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def country
  @country
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def name
  @name
end

#stateObject (readonly)

Returns the value of attribute state.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def state
  @state
end

#surfaceObject (readonly)

Returns the value of attribute surface.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def surface
  @surface
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def type
  @type
end

#zipObject (readonly)

Returns the value of attribute zip.



4
5
6
# File 'lib/sports_data_api/ncaafb/venue.rb', line 4

def zip
  @zip
end