killbill-client 0.20.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/killbill_client/models/resource.rb +4 -3
- data/lib/killbill_client/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: c6ba172b6c3e28884c9939ef560379b58a773af2
|
4
|
+
data.tar.gz: 5803a7af74f703770e0310e6c2d36e9b71408db3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea82d0386f1b297b0b2cdc9bac0f417b26bdb818970dcf118e7051ed93c1b78658890a666e324f4291fd8f20303bb770962fcdd00a4cc1cc437fd7c96ab3cf0
|
7
|
+
data.tar.gz: 79b7fb7cb89280568a3cbaa4fc09970675116951fcbf62712e5846b93b1693fafcabc7cd79c7c24f335ef357faf5b6d18a1d6ca25ccb87c779fac8f824562ad2
|
@@ -131,13 +131,14 @@ module KillBillClient
|
|
131
131
|
def instantiate_record_from_json(resource_class, data)
|
132
132
|
record = resource_class.send :new
|
133
133
|
|
134
|
+
kb_ancestors = resource_class.ancestors.select { |ancestor| !@@attribute_names[ancestor.name].nil? }
|
134
135
|
data.each do |name, value|
|
135
136
|
name = Utils.underscore name
|
136
137
|
attr_desc = nil
|
137
138
|
|
138
|
-
# Allow for inheritance
|
139
|
-
|
140
|
-
attr_desc = @@attribute_names[ancestor.name][name.to_sym]
|
139
|
+
# Allow for inheritance
|
140
|
+
kb_ancestors.each do |ancestor|
|
141
|
+
attr_desc = @@attribute_names[ancestor.name][name.to_sym]
|
141
142
|
break unless attr_desc.nil?
|
142
143
|
end
|
143
144
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Killbill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|