Class: EdmTrain::Venue

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

Overview

Venue object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject (readonly)

Returns the value of attribute address.



6
7
8
# File 'lib/edm_train/venue.rb', line 6

def address
  @address
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/edm_train/venue.rb', line 6

def id
  @id
end

#latitudeObject (readonly)

Returns the value of attribute latitude.



6
7
8
# File 'lib/edm_train/venue.rb', line 6

def latitude
  @latitude
end

#locationObject (readonly)

Returns the value of attribute location.



6
7
8
# File 'lib/edm_train/venue.rb', line 6

def location
  @location
end

#longitudeObject (readonly)

Returns the value of attribute longitude.



6
7
8
# File 'lib/edm_train/venue.rb', line 6

def longitude
  @longitude
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/edm_train/venue.rb', line 6

def name
  @name
end

#stateObject (readonly)

Returns the value of attribute state.



6
7
8
# File 'lib/edm_train/venue.rb', line 6

def state
  @state
end