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: 21f17b61e63b21d5cb61fec2c979fc20de5e665a
4
- data.tar.gz: 011f2dc5e25309cfc9dde05d83b78e2142a86631
3
+ metadata.gz: 5e0c38afb9ddbca6396753a59d48418bba41ac61
4
+ data.tar.gz: 2028710738a46ee18d6dbe29130940142781fc6d
5
5
  SHA512:
6
- metadata.gz: 9ac8523a6efe0c6c0318d3c87b26ec1555538b6c9388a093abe5ceed4e0394aa732812b95c2afaf697e3f2c1df0caf894fa14652fda325530f9e5436a78e4aa4
7
- data.tar.gz: a458b49002b2b6635c4dfd62903b37207ce1533328d7eb6f07f7568ca7045d5496d969b1ebaecc561f934efc37abd023d6195e19c31c258c8c502aac2ae7ee0b
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: category["photo"]["url"],
6
- slug: category["slug"],
7
- name: category["name"],
8
- id: category["id"],
9
- api: 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: 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"]
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
@@ -1,3 +1,3 @@
1
1
  module Planvine
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: planvine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Patching