Class: Sportradar::Api::Football::Venue

Inherits:
Data
  • Object
show all
Defined in:
lib/sportradar/api/football/venue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def address
  @address
end

#capacityObject

Returns the value of attribute capacity.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def capacity
  @capacity
end

#cityObject

Returns the value of attribute city.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def city
  @city
end

#countryObject

Returns the value of attribute country.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def country
  @country
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def id
  @id
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def name
  @name
end

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def response
  @response
end

#roof_typeObject

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

#stateObject

Returns the value of attribute state.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def state
  @state
end

#surfaceObject

Returns the value of attribute surface.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def surface
  @surface
end

#timezoneObject

Returns the value of attribute timezone.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def timezone
  @timezone
end

#zipObject

Returns the value of attribute zip.



5
6
7
# File 'lib/sportradar/api/football/venue.rb', line 5

def zip
  @zip
end