planvine 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e0c38afb9ddbca6396753a59d48418bba41ac61
|
4
|
+
data.tar.gz: 2028710738a46ee18d6dbe29130940142781fc6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4793fa10ca7cdc57c74065da047ab4b83aa71e9a5ba487eda46cc5e9bcaf3cc10bcce06e6fd77568d35ba4ecf2f3e5ed6319d084f9b4bc3e3addbd7b5d89fba2
|
7
|
+
data.tar.gz: 5af09543ca88a2802486ec9c2b88feb2bb3396443edfc039ece99ae30e1b8a55fe81730f9934fb8ed825dc76fb5ce5eb2a399cfd74d1c57ed74e43f068231641
|
@@ -2,11 +2,11 @@ module Planvine
|
|
2
2
|
class CategoriesBuilder
|
3
3
|
def self.build(category, api)
|
4
4
|
Category.new(
|
5
|
-
photo
|
6
|
-
slug
|
7
|
-
name
|
8
|
-
id
|
9
|
-
api
|
5
|
+
:photo => category["photo"]["url"],
|
6
|
+
:slug => category["slug"],
|
7
|
+
:name => category["name"],
|
8
|
+
:id => category["id"],
|
9
|
+
:api => api
|
10
10
|
)
|
11
11
|
end
|
12
12
|
end
|
@@ -2,13 +2,13 @@ module Planvine
|
|
2
2
|
class EventsBuilder
|
3
3
|
def self.build(event)
|
4
4
|
Event.new(
|
5
|
-
end_date
|
6
|
-
title
|
7
|
-
url
|
8
|
-
photo
|
9
|
-
start_date
|
10
|
-
venue
|
11
|
-
id
|
5
|
+
:end_date => Date.parse(event["end_date"]),
|
6
|
+
:title => event["title"],
|
7
|
+
:url => event["url"],
|
8
|
+
:photo => event["photo"]["url"],
|
9
|
+
:start_date => Date.parse(event["start_date"]),
|
10
|
+
:venue => Venue.new(event["venue"]),
|
11
|
+
:id => event["id"]
|
12
12
|
)
|
13
13
|
end
|
14
14
|
end
|
data/lib/planvine/version.rb
CHANGED