blsk_ruby_core_api 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/model/model.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91389e86201d1e77ba1a79c167b583a5258551bb3588ce379f591b5865e830b4
4
- data.tar.gz: c46b2a42a6f40004fedb6ecb16a7ec11de02874fd7590ee98267a74462da999e
3
+ metadata.gz: ed6885f230796c1b7f0664cea542b2aec244866bdebb9a79f35d86686c7a4d8b
4
+ data.tar.gz: d644be1e38c280fc3ae580e236d3fb22f3d2c50c7c0a9d0afb1c7750181a868b
5
5
  SHA512:
6
- metadata.gz: a721020d02694c89b45c38885c673ce1f5dc582e655da1a2ba08a46e96789fc570936bba2c9bfa69a2d3658e41f2f29b33754331212efc7fb7ebabcf10b6f8d3
7
- data.tar.gz: 500ba3d2d185f5b892525861b9d728052f49d504d08b4ac59d2f5e9ecad9e11b6fd3c4c833f009844abfe7cd8dcaabe3c22ea6bf32e0d30992d7a8cc07306276
6
+ metadata.gz: 3610e147b375a010883c0b740aa03b9dae3c29fbc2897f97874d6b622bff1c49317a7a59523d6bf0576629cbc2ef97441e199dd14f27c7dbc324d115678f8cbd
7
+ data.tar.gz: 47e1cb86ed3d348c83cde044661b658b0e1f614358ee14ce32c3169486d93f4825c5c92e1fbe0272624b4d22e034debcdf554807888c19169fa866dfdcf675b6
data/lib/model/model.rb CHANGED
@@ -17,7 +17,8 @@ class Model < Dry::Struct
17
17
  end
18
18
 
19
19
  def to clazz
20
- clazz.new attributes
20
+ new_attributes = attributes.merge(clazz.different_attributes(attributes, self.class))
21
+ clazz.new new_attributes
21
22
  end
22
23
 
23
24
  def to_json
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blsk_ruby_core_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fusin Thang