Class: SportsDataApi::Nba::Venue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Venue

Returns a new instance of Venue.



6
7
8
9
10
11
12
13
14
15
# File 'lib/sports_data_api/nba/venue.rb', line 6

def initialize(json)
  @id = json['id']
  @name = json['name']
  @address = json['address']
  @city = json['city']
  @state = json['state']
  @zip = json['zip']
  @country = json['country']
  @capacity = json['capacity']
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



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

def address
  @address
end

#capacityObject (readonly)

Returns the value of attribute capacity.



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

def capacity
  @capacity
end

#cityObject (readonly)

Returns the value of attribute city.



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

def city
  @city
end

#countryObject (readonly)

Returns the value of attribute country.



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

def country
  @country
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#stateObject (readonly)

Returns the value of attribute state.



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

def state
  @state
end

#zipObject (readonly)

Returns the value of attribute zip.



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

def zip
  @zip
end