dagjeweg 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dagjeweg/tip.rb +2 -3
- data/lib/dagjeweg/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a878de04d506868293ec277a358bcf0f57fb516
|
4
|
+
data.tar.gz: fd79ae2831635f8852065b48ddeaf9b866f0d5cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68b1059a9fdaf4741db32c66e51c7323c0a5a8c4bd9a96385e27168920fa732734668c3590bea27143e662d5f30e63b95a342e898f64b5bf754fd691afb2cef7
|
7
|
+
data.tar.gz: 55cf572b26eea6d8c94423d5e0c18f493f414e611adf8021c319e3d2609d4e1b40115646e300c935d80d2b00f786b7479ce3e65c4e966477895ef529a2b241de
|
data/lib/dagjeweg/tip.rb
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
module Dagjeweg
|
2
2
|
|
3
3
|
class Tip
|
4
|
-
attr_accessor :dw_id, :name, :google_name, :show_name, :show_price, :address, :email, :city, :postal_code, :dw_id, :latitude, :longitude, :image, :show_image, :long_description, :url, :phone, :email, :image2, :image3, :image4, :image5, :image6, :image8, :image9, :image10, :image11, :image12, :image13, :dwurl, :ma, :di, :wo, :do, :vr, :za, :zo, :from_time, :until_time, :open_comment, :price, :price_kids, :price_seniors, :price_toddlers, :price_comment, :description, :show_reviews, :wheelchair, :wheelchair_toilet, :accessible, :accessible_comment, :periode, :weer, :rounded_cijfer, :number_of_reviews, :activities, :genre, :distance
|
5
|
-
|
4
|
+
attr_accessor :dw_id, :name, :google_name, :show_name, :show_price, :address, :email, :city, :postal_code, :dw_id, :latitude, :longitude, :image, :show_image, :long_description, :url, :phone, :email, :image2, :image3, :image4, :image5, :image6, :image8, :image9, :image10, :image11, :image12, :image13, :dwurl, :ma, :di, :wo, :do, :vr, :za, :zo, :from_time, :until_time, :open_comment, :price, :price_kids, :price_seniors, :price_toddlers, :price_comment, :description, :show_reviews, :wheelchair, :wheelchair_toilet, :accessible, :accessible_comment, :periode, :weer, :rounded_cijfer, :number_of_reviews, :activities, :genre, :distance, :eerste_paasdag, :tweede_paasdag, :goede_vrijdag, :bevrijdingsdag, :hemelvaartsdag, :eerste_pinksterdag, :tweede_pinksterdag, :eerste_kerstdag, :tweede_kerstdag, :oudejaarsdag, :nieuwjaarsdag, :koningsdag
|
6
5
|
|
7
|
-
#
|
8
6
|
# Initializer to transform a +Hash+ into an Tip object
|
9
7
|
#
|
10
8
|
# @param [Hash] args
|
@@ -33,6 +31,7 @@ module Dagjeweg
|
|
33
31
|
def self.find(dw_id="")
|
34
32
|
uri = Dagjeweg::Tip.api_url("tips.json?id=#{dw_id.to_s}")
|
35
33
|
json = Dagjeweg::Tip.get_json(uri)
|
34
|
+
puts "JSON: #{json}"
|
36
35
|
if json && json.any?
|
37
36
|
tip = new(json.first)
|
38
37
|
return tip
|
data/lib/dagjeweg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dagjeweg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henk Meijer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
183
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.
|
184
|
+
rubygems_version: 2.6.14
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: Communiceer met de API van DagjeWeg.NL en haal informatie op over dagjes
|
@@ -189,4 +189,3 @@ summary: Communiceer met de API van DagjeWeg.NL en haal informatie op over dagje
|
|
189
189
|
test_files:
|
190
190
|
- spec/spec_helper.rb
|
191
191
|
- spec/tip_spec.rb
|
192
|
-
has_rdoc:
|