Class: Statium::Opta::Model::Venue
- Inherits:
-
Object
- Object
- Statium::Opta::Model::Venue
- Defined in:
- lib/statium/opta/model/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.
-
#contestants ⇒ Object
Returns the value of attribute contestants.
-
#country ⇒ Object
Returns the value of attribute country.
-
#countryCode ⇒ Object
Returns the value of attribute countryCode.
-
#countryId ⇒ Object
Returns the value of attribute countryId.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mapsGeoCodeLatitude ⇒ Object
Returns the value of attribute mapsGeoCodeLatitude.
-
#mapsGeoCodeLongitude ⇒ Object
Returns the value of attribute mapsGeoCodeLongitude.
-
#name ⇒ Object
Returns the value of attribute name.
-
#opened ⇒ Object
Returns the value of attribute opened.
-
#surface ⇒ Object
Returns the value of attribute surface.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params) ⇒ Venue
constructor
A new instance of Venue.
Constructor Details
#initialize(params) ⇒ Venue
Returns a new instance of Venue
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/statium/opta/model/venue.rb', line 25 def initialize(params) params.each do |key, value| instance_variable_set("@#{key}", value) end @contestants = [] if params["contestant"] != nil params["contestant"].each do |contestant_params| @contestants << Contestant.new(contestant_params) end end end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address
11 12 13 |
# File 'lib/statium/opta/model/venue.rb', line 11 def address @address end |
#capacity ⇒ Object
Returns the value of attribute capacity
13 14 15 |
# File 'lib/statium/opta/model/venue.rb', line 13 def capacity @capacity end |
#city ⇒ Object
Returns the value of attribute city
7 8 9 |
# File 'lib/statium/opta/model/venue.rb', line 7 def city @city end |
#contestants ⇒ Object
Returns the value of attribute contestants
17 18 19 |
# File 'lib/statium/opta/model/venue.rb', line 17 def contestants @contestants end |
#country ⇒ Object
Returns the value of attribute country
9 10 11 |
# File 'lib/statium/opta/model/venue.rb', line 9 def country @country end |
#countryCode ⇒ Object
Returns the value of attribute countryCode
10 11 12 |
# File 'lib/statium/opta/model/venue.rb', line 10 def countryCode @countryCode end |
#countryId ⇒ Object
Returns the value of attribute countryId
8 9 10 |
# File 'lib/statium/opta/model/venue.rb', line 8 def countryId @countryId end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/statium/opta/model/venue.rb', line 5 def id @id end |
#mapsGeoCodeLatitude ⇒ Object
Returns the value of attribute mapsGeoCodeLatitude
15 16 17 |
# File 'lib/statium/opta/model/venue.rb', line 15 def mapsGeoCodeLatitude @mapsGeoCodeLatitude end |
#mapsGeoCodeLongitude ⇒ Object
Returns the value of attribute mapsGeoCodeLongitude
16 17 18 |
# File 'lib/statium/opta/model/venue.rb', line 16 def mapsGeoCodeLongitude @mapsGeoCodeLongitude end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/statium/opta/model/venue.rb', line 6 def name @name end |
#opened ⇒ Object
Returns the value of attribute opened
12 13 14 |
# File 'lib/statium/opta/model/venue.rb', line 12 def opened @opened end |
#surface ⇒ Object
Returns the value of attribute surface
14 15 16 |
# File 'lib/statium/opta/model/venue.rb', line 14 def surface @surface end |