Class: Planvine::Venue
- Inherits:
-
Object
- Object
- Planvine::Venue
- Defined in:
- lib/planvine/venue.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #address ⇒ Object
-
#initialize(params) ⇒ Venue
constructor
A new instance of Venue.
- #lat ⇒ Object
- #lng ⇒ Object
- #name ⇒ Object
- #short_address ⇒ Object
- #uid ⇒ Object
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
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/planvine/venue.rb', line 3 def params @params end |
Instance Method Details
#address ⇒ Object
25 26 27 |
# File 'lib/planvine/venue.rb', line 25 def address @params.fetch("address", '') end |
#lat ⇒ Object
17 18 19 |
# File 'lib/planvine/venue.rb', line 17 def lat @params.fetch("lat", '') end |
#lng ⇒ Object
21 22 23 |
# File 'lib/planvine/venue.rb', line 21 def lng @params.fetch("lng", '') end |
#name ⇒ Object
13 14 15 |
# File 'lib/planvine/venue.rb', line 13 def name @params.fetch("name", '') end |
#short_address ⇒ Object
29 30 31 |
# File 'lib/planvine/venue.rb', line 29 def short_address @params.fetch("short_address", '') end |
#uid ⇒ Object
9 10 11 |
# File 'lib/planvine/venue.rb', line 9 def uid @params.fetch("uid", '') end |