icalia-sdk-event-core 0.1.7 → 0.1.8

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: 6321209153df32260848fdee5d4e433f6af074972f289f11fea50640ee38fcfe
4
- data.tar.gz: a11ba4da75cd6d76a9fd6315fe893646ead0035331ed68ed8a484ad32cc08a2e
3
+ metadata.gz: fc180c4bdb65be4ac047a6c5faa76907116d5600427e3faa35da18707a3d6652
4
+ data.tar.gz: b392af634020c9af67868d26b1f5027f69dcd1a7395da4132ce20276459f47a9
5
5
  SHA512:
6
- metadata.gz: c118f3155c3b60d73a06da7448f679be59d2d63a1ee9c9853bea239dbae745f6ea6429258bcf623dac562155aaacdf635970af5f234d1879431d0b88efd2f113
7
- data.tar.gz: 11dbbbf392fd7596205d08d55ddc76aeac94354566ce8d098c65b789e2ee80c22d05c28597fa19c35db0b1bd66d3ceb0cde045b9435df67b768a911ebbb8b491
6
+ metadata.gz: 0011e389025929216fb43f6f52d60f01086b2d2fac12ac58c7ea29e15040e26c7d0c537bbe9ccd15751346a1310dc743e79ddb37e85712d881bb2afcebcca14c
7
+ data.tar.gz: 0b168e16ab12c9cf0850648c3ffe7ca9bcd94b8356089cc18d0c47e9e77a4bbb716de5f3b87874390d9b1e064d989aa2ada8da8e304405979c1547261064b2c8
@@ -36,6 +36,9 @@ module Icalia
36
36
  autoload :DeserializableUser,
37
37
  "#{serialization_path}/deserializable_user"
38
38
 
39
+ autoload :DeserializablePerson,
40
+ "#{serialization_path}/deserializable_person"
41
+
39
42
  autoload :DeserializableOauthAccessToken,
40
43
  "#{serialization_path}/deserializable_oauth_access_token"
41
44
 
@@ -13,5 +13,9 @@ module Icalia::Event
13
13
  has_one :organization do |_rel, id, type|
14
14
  Hash[organization_id: id, organization_type: classify_type(type)]
15
15
  end
16
+
17
+ has_one :sender do |_rel, id, type|
18
+ Hash[sender_id: id, sender_type: classify_type(type)]
19
+ end
16
20
  end
17
21
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Icalia::Event
4
+ #= DeserializablePerson
5
+ #
6
+ # This class is responsible for converting a JSONAPI.org representation of an
7
+ # Icalia Event's `Person` object
8
+ class DeserializablePerson < JSONAPI::Deserializable::Resource
9
+ include DeserializableResourceIdentity
10
+ include DeserializableResourceTimestamps
11
+
12
+ attributes :name
13
+ end
14
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Icalia
4
4
  module Event
5
- CORE_VERSION = '0.1.7'
5
+ CORE_VERSION = '0.1.8'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icalia-sdk-event-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Quintanilla
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-16 00:00:00.000000000 Z
11
+ date: 2019-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-deserializable
@@ -90,6 +90,7 @@ files:
90
90
  - lib/icalia-sdk-event-core/serialization/deserializable_oauth_application.rb
91
91
  - lib/icalia-sdk-event-core/serialization/deserializable_organization.rb
92
92
  - lib/icalia-sdk-event-core/serialization/deserializable_organization_event.rb
93
+ - lib/icalia-sdk-event-core/serialization/deserializable_person.rb
93
94
  - lib/icalia-sdk-event-core/serialization/deserializable_property_resource.rb
94
95
  - lib/icalia-sdk-event-core/serialization/deserializable_resource_action.rb
95
96
  - lib/icalia-sdk-event-core/serialization/deserializable_resource_creation_timestamp.rb