Class: Sportradar::Api::Football::Venue
- Defined in:
- lib/sportradar/api/football/venue.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#capacity ⇒ Object
Returns the value of attribute capacity.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#response ⇒ Object
Returns the value of attribute response.
-
#roof_type ⇒ Object
Returns the value of attribute roof_type.
-
#state ⇒ Object
Returns the value of attribute state.
-
#surface ⇒ Object
Returns the value of attribute surface.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(data) ⇒ Venue
constructor
A new instance of Venue.
Methods inherited from Data
#all_attributes, #attributes, #create_data, #parse_into_array, #parse_into_array_with_options, #parse_out_hashes, #structure_links, #update_data
Constructor Details
#initialize(data) ⇒ Venue
Returns a new instance of Venue.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sportradar/api/football/venue.rb', line 7 def initialize(data) @response = data @id = data["id"] @name = data["name"] @city = data["city"] @state = data["state"] @country = data["country"] @zip = data["zip"] @address = data["address"] @capacity = data["capacity"] @timezone = data['timezone'] @surface = data["surface"] @roof_type = data["roof_type"] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def address @address end |
#capacity ⇒ Object
Returns the value of attribute capacity.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def capacity @capacity end |
#city ⇒ Object
Returns the value of attribute city.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def country @country end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def name @name end |
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def response @response end |
#roof_type ⇒ Object
Returns the value of attribute roof_type.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def roof_type @roof_type end |
#state ⇒ Object
Returns the value of attribute state.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def state @state end |
#surface ⇒ Object
Returns the value of attribute surface.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def surface @surface end |
#timezone ⇒ Object
Returns the value of attribute timezone.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def timezone @timezone end |
#zip ⇒ Object
Returns the value of attribute zip.
5 6 7 |
# File 'lib/sportradar/api/football/venue.rb', line 5 def zip @zip end |