Class: EdmTrain::Venue
- Inherits:
-
Object
- Object
- EdmTrain::Venue
- Defined in:
- lib/edm_train/venue.rb
Overview
Venue object
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(raw_venue) ⇒ Venue
constructor
A new instance of Venue.
Constructor Details
#initialize(raw_venue) ⇒ Venue
8 9 10 11 12 13 14 15 16 |
# File 'lib/edm_train/venue.rb', line 8 def initialize(raw_venue) @id = raw_venue['id'] @name = raw_venue['name'] @location = raw_venue['location'] @address = raw_venue['address'] @state = raw_venue['state'] @latitude = raw_venue['latitude'] @longitude = raw_venue['longitude'] end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
6 7 8 |
# File 'lib/edm_train/venue.rb', line 6 def address @address end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/edm_train/venue.rb', line 6 def id @id end |
#latitude ⇒ Object (readonly)
Returns the value of attribute latitude.
6 7 8 |
# File 'lib/edm_train/venue.rb', line 6 def latitude @latitude end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
6 7 8 |
# File 'lib/edm_train/venue.rb', line 6 def location @location end |
#longitude ⇒ Object (readonly)
Returns the value of attribute longitude.
6 7 8 |
# File 'lib/edm_train/venue.rb', line 6 def longitude @longitude end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/edm_train/venue.rb', line 6 def name @name end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
6 7 8 |
# File 'lib/edm_train/venue.rb', line 6 def state @state end |