planvine 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/planvine/venue.rb +7 -6
- data/lib/planvine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cb71984105f169ce3cb002840f3717b010818b0
|
4
|
+
data.tar.gz: 4af76a673a07c2e15967bfcc59c8b2c1e67443ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d344768be56cc44c7437e16ed754a96452f4babe05198739df5b617c404ddb6faee5d2ccd86fdeba9eeba08938cfa2132f45006738d07909f37cb412e9244b
|
7
|
+
data.tar.gz: 757685a5e587e33808062e7944bc9fe0b2e1019d8590e75b44ffda8893f791d5eedbb557e8602749df3ec4236423a875d7a3e298dc5727cbaec58069e6ffb263
|
data/lib/planvine/venue.rb
CHANGED
@@ -1,32 +1,33 @@
|
|
1
1
|
module Planvine
|
2
2
|
class Venue
|
3
3
|
attr_reader :params
|
4
|
+
|
4
5
|
def initialize(params)
|
5
6
|
@params = params
|
6
7
|
end
|
7
8
|
|
8
9
|
def uid
|
9
|
-
@params.fetch(
|
10
|
+
@params.fetch("uid", '')
|
10
11
|
end
|
11
12
|
|
12
13
|
def name
|
13
|
-
@params.fetch(
|
14
|
+
@params.fetch("name", '')
|
14
15
|
end
|
15
16
|
|
16
17
|
def lat
|
17
|
-
@params.fetch(
|
18
|
+
@params.fetch("lat", '')
|
18
19
|
end
|
19
20
|
|
20
21
|
def lng
|
21
|
-
@params.fetch(
|
22
|
+
@params.fetch("lng", '')
|
22
23
|
end
|
23
24
|
|
24
25
|
def address
|
25
|
-
@params.fetch(
|
26
|
+
@params.fetch("address", '')
|
26
27
|
end
|
27
28
|
|
28
29
|
def short_address
|
29
|
-
@params.fetch(
|
30
|
+
@params.fetch("short_address", '')
|
30
31
|
end
|
31
32
|
end
|
32
33
|
end
|
data/lib/planvine/version.rb
CHANGED