egov_utils 0.2.11 → 0.2.12
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38c99e9ec2cf5d25aa7b814edae5f6ea40bc0daf4415ab949b3a8cbacca86bb8
|
4
|
+
data.tar.gz: 0befe9b58a73e45efde674697f22c116e3a82e9219e68ea3ad8bf6bf6c70f29a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73c3cef165f18c95dc3b518709ff825ff5f840b71444b471d414f2f0e0c031a17f68df0c4fa740e015109d7d7e509d7f92d3e2985f24375dc898e4fb1fbc51e9
|
7
|
+
data.tar.gz: c17455fe4ff7594600241b123e4100c881a0c6ba9bf9e6467c48d4b7912fbd3cc87f2891b48a1e89db0782d8a3da604a4726536acf20ed79f2e010656665c611
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module EgovUtils
|
2
|
-
class FullAddress < AzaharaSchema::
|
2
|
+
class FullAddress < AzaharaSchema::DerivedAttribute
|
3
3
|
|
4
|
-
def
|
5
|
-
|
4
|
+
def initialize(model, name, **options)
|
5
|
+
super(model, name, :concat, 'city', 'street', options)
|
6
6
|
end
|
7
7
|
|
8
8
|
def build_json_options!(options)
|
9
9
|
options[:methods] ||= []
|
10
|
-
options[:methods] <<
|
10
|
+
options[:methods] << name
|
11
11
|
options
|
12
12
|
end
|
13
13
|
|
@@ -22,7 +22,7 @@ module EgovUtils
|
|
22
22
|
|
23
23
|
def initialize_available_attributes
|
24
24
|
@available_attributes ||= []
|
25
|
-
@available_attributes << FullAddress.new(model, 'full_address',
|
25
|
+
@available_attributes << EgovUtils::FullAddress.new(model, 'full_address', schema: self)
|
26
26
|
super
|
27
27
|
end
|
28
28
|
|
data/lib/egov_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egov_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|