bbr 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bbr/get_building_data_from_id.rb +20 -9
- data/lib/bbr/version.rb +1 -1
- data/lib/bbr.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5206e2906defefb4036a52d112acfc7af7fde7bf
|
4
|
+
data.tar.gz: 52427a4d6e6dd5ffa52fc47cac29db4e2a3c5901
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e9b06cff2c82f4dc63ce097019e1f79a495c74b4f636a3aab0383302e9be418c202ecc2d626689db381211bcbac2e959522683caa27f90d5c9be2bea155f17c
|
7
|
+
data.tar.gz: 19b4eabca26002133e609dab5810975185cfb81507cb500ea1a51cdfd178683266883056fbfd234499396e67052928cb224ac05df9a370199fc4ecf001890dc9
|
data/CHANGELOG.md
CHANGED
@@ -22,15 +22,26 @@ module BBR
|
|
22
22
|
def self.formatted_response(response=nil)
|
23
23
|
if response.present? && !response.at_xpath("//Fault").try(:content).present?
|
24
24
|
{
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
25
|
+
building: {
|
26
|
+
age: (Time.now.year - response.at_xpath("//Opfoerselsaar").try(:content).to_i).to_i,
|
27
|
+
area: response.at_xpath("//BebyggetAreal").try(:content),
|
28
|
+
roof: {
|
29
|
+
type: response.at_xpath("//Tagdaekningsmateriale/Value").try(:content),
|
30
|
+
material: response.at_xpath("//Tagdaekningsmateriale/Value").try(:content),
|
31
|
+
area: response.at_xpath("//UdnyttetTagetageareal").try(:content)
|
32
|
+
|
33
|
+
},
|
34
|
+
heating: {
|
35
|
+
installation: response.at_xpath("//Varmeinstallation/Value").try(:content),
|
36
|
+
means: response.at_xpath("//Opvarmningsmiddel/Value").try(:content)
|
37
|
+
},
|
38
|
+
outer_wall: {
|
39
|
+
material: response.at_xpath("//Ydervaegsmateriale/Value").try(:content),
|
40
|
+
},
|
41
|
+
floor: {
|
42
|
+
numbers: response.at_xpath("//AntalEtager").try(:content)
|
43
|
+
}
|
44
|
+
}
|
34
45
|
}
|
35
46
|
else
|
36
47
|
Hash.new
|
data/lib/bbr/version.rb
CHANGED
data/lib/bbr.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bbr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesper Sørensen & Nicolai Seerup
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|