cadooz 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9e95447d16ab7848753b4b92088d6af73ef7fa8
4
- data.tar.gz: 448bce0d69273cabd25f8dd3501d0a33f4de6858
3
+ metadata.gz: 4bdfd0781ddb32051c5afee9bd1881ca7c427ada
4
+ data.tar.gz: 7305956ad330c3bdb706a340c0023a0fa3b9c12d
5
5
  SHA512:
6
- metadata.gz: 9b93a48c631ace546c4a7c3231635ecfeea1860eecee3b7707739d32c01a2134bbc550ad5af56b3126e62433997966dedda9131ed0e259996bb14d810fdfc4c3
7
- data.tar.gz: 9b4e5d83620e7c186b7b1696204e5c39bd83d48d1ce01f00d413b313645c132d9362d932983753694dce9c882bf27df2f96973f795a55850a0bc1811b7987d98
6
+ metadata.gz: 3daeb38a4717d37908651b03f2b6051141b390af305d97d8b522115ba1a7b22771d2e5ee9c83b60cbbf5f231a34f35edabaccdc7c5cf0bf6ed3d9dab7fb7ad8e
7
+ data.tar.gz: 6552f670971bfdc32500bc38812c790aecf5867b9e499910729cca006c13dac776014da7760798724f26af5ee6c33ce330a4f83a479ae9604216069512f35795
@@ -31,24 +31,24 @@ module Cadooz
31
31
  module Mutable end
32
32
  end
33
33
 
34
- require 'mixins'
35
- require 'cadooz/models/immutable/address'
36
- require 'cadooz/models/immutable/attributes'
37
- require 'cadooz/models/immutable/catalog'
38
- require 'cadooz/models/immutable/catalog_product'
39
- require 'cadooz/models/immutable/catalog_product_variation'
40
- require 'cadooz/models/immutable/generation_profile_product'
41
- require 'cadooz/models/immutable/greeting_card'
42
- require 'cadooz/models/immutable/invoice_information'
43
- require 'cadooz/models/immutable/order'
44
- require 'cadooz/models/immutable/order_position'
45
- require 'cadooz/models/immutable/order_status'
46
- require 'cadooz/models/immutable/payment'
47
- require 'cadooz/models/immutable/product_category'
48
- require 'cadooz/models/immutable/voucher'
49
- require 'cadooz/models/mutable/address'
50
- require 'cadooz/models/mutable/greeting_card'
51
- require 'cadooz/models/mutable/invoice_information'
52
- require 'cadooz/models/mutable/order'
53
- require 'cadooz/models/mutable/order_position'
54
- require 'cadooz/services/business_order_service'
34
+ require_relative 'mixins'
35
+ require_relative 'cadooz/models/immutable/address'
36
+ require_relative 'cadooz/models/immutable/attributes'
37
+ require_relative 'cadooz/models/immutable/catalog'
38
+ require_relative 'cadooz/models/immutable/catalog_product'
39
+ require_relative 'cadooz/models/immutable/catalog_product_variation'
40
+ require_relative 'cadooz/models/immutable/generation_profile_product'
41
+ require_relative 'cadooz/models/immutable/greeting_card'
42
+ require_relative 'cadooz/models/immutable/invoice_information'
43
+ require_relative 'cadooz/models/immutable/order'
44
+ require_relative 'cadooz/models/immutable/order_position'
45
+ require_relative 'cadooz/models/immutable/order_status'
46
+ require_relative 'cadooz/models/immutable/payment'
47
+ require_relative 'cadooz/models/immutable/product_category'
48
+ require_relative 'cadooz/models/immutable/voucher'
49
+ require_relative 'cadooz/models/mutable/address'
50
+ require_relative 'cadooz/models/mutable/greeting_card'
51
+ require_relative 'cadooz/models/mutable/invoice_information'
52
+ require_relative 'cadooz/models/mutable/order'
53
+ require_relative 'cadooz/models/mutable/order_position'
54
+ require_relative 'cadooz/services/business_order_service'
@@ -6,6 +6,9 @@ class Cadooz::Immutable::ProductCategory
6
6
  def initialize(open_struct)
7
7
  @id = open_struct&.id
8
8
  @description = open_struct&.description
9
+ &.map_entries
10
+ &.elements
11
+ &.inject({}) { |hash, element| hash.merge(element.key.to_sym => element.value) }
9
12
  @internal_name = open_struct&.internal_name
10
13
  @shop_name = open_struct&.shop_name
11
14
  &.map_entries
@@ -1,3 +1,3 @@
1
1
  module Cadooz
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cadooz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Brown