Class: Planvine::Venue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Venue

Returns a new instance of Venue.



5
6
7
# File 'lib/planvine/venue.rb', line 5

def initialize(params)
  @params = params
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



3
4
5
# File 'lib/planvine/venue.rb', line 3

def params
  @params
end

Instance Method Details

#addressObject



25
26
27
# File 'lib/planvine/venue.rb', line 25

def address
  @params.fetch("address", '')
end

#latObject



17
18
19
# File 'lib/planvine/venue.rb', line 17

def lat
  @params.fetch("lat", '')
end

#lngObject



21
22
23
# File 'lib/planvine/venue.rb', line 21

def lng
  @params.fetch("lng", '')
end

#nameObject



13
14
15
# File 'lib/planvine/venue.rb', line 13

def name
  @params.fetch("name", '')
end

#short_addressObject



29
30
31
# File 'lib/planvine/venue.rb', line 29

def short_address
  @params.fetch("short_address", '')
end

#uidObject



9
10
11
# File 'lib/planvine/venue.rb', line 9

def uid
  @params.fetch("uid", '')
end