brreg_grunndata 0.1.1 → 0.1.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 +10 -3
- data/lib/brreg_grunndata/types/address.rb +12 -1
- data/lib/brreg_grunndata/types/factories.rb +1 -1
- data/lib/brreg_grunndata/version.rb +1 -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: ba9648fb746b8215e09be64007face17f81a9feb
|
4
|
+
data.tar.gz: 2c98f2ea4e49b81a1c9c09ee1ae4181dd759b105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4ba43368f70634eff7e17be7f41ddb36a983322c6f1dd78a2c009328d1927534800f79ce49e2b5953d5e1584a151e34cd4625fbf08be56b4ed6a9a8c30e0212
|
7
|
+
data.tar.gz: 3c550fdaef0d49f3d034e5f6cf369b362ec03e2e3f5f8ff070f7820ba4d1112b0856c7edeb794a47c7ca12d9ae44d34143a0aeba97f028236b035fb46be5fcf9
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
|
-
## v.0.1.
|
1
|
+
## v.0.1.3 (to be released)
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
|
4
|
+
## v.0.1.2
|
5
|
+
|
6
|
+
* FIXED: Returned address from service now includes all parts of the street.
|
7
|
+
|
8
|
+
## v.0.1.1
|
9
|
+
|
10
|
+
* ADDED: `hent_saerlige_opplysninger` to the service layer.
|
11
|
+
* ADDED: client spec for `hent_saerlige_opplysninger`.
|
5
12
|
|
6
13
|
## v.0.1.0
|
7
14
|
|
@@ -5,13 +5,24 @@ require_relative 'base'
|
|
5
5
|
module BrregGrunndata
|
6
6
|
module Types
|
7
7
|
class Address < Base
|
8
|
-
attribute :
|
8
|
+
attribute :street_parts, Types::Array.member(Types::String).default([])
|
9
9
|
attribute :postal_code, Types::String
|
10
10
|
attribute :postal_area, Types::String
|
11
11
|
attribute :municipality_number, Types::String
|
12
12
|
attribute :municipality, Types::String
|
13
13
|
attribute :country_code, Types::String
|
14
14
|
attribute :country, Types::String
|
15
|
+
|
16
|
+
# Returns this address' street
|
17
|
+
#
|
18
|
+
# Brreg returns street as three parts. You find them in #street_parts.
|
19
|
+
# If you just one a string representing the street this is your method.
|
20
|
+
# It joins the parts by given separator defaulting to ', '
|
21
|
+
#
|
22
|
+
# @return String
|
23
|
+
def street(separator = ', ')
|
24
|
+
street_parts.join separator
|
25
|
+
end
|
15
26
|
end
|
16
27
|
end
|
17
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brreg_grunndata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thorbjørn Hermansen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|