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 +4 -4
- data/lib/icalia-sdk-event-core/serialization.rb +3 -0
- data/lib/icalia-sdk-event-core/serialization/deserializable_organization_event.rb +4 -0
- data/lib/icalia-sdk-event-core/serialization/deserializable_person.rb +14 -0
- data/lib/icalia-sdk-event-core/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc180c4bdb65be4ac047a6c5faa76907116d5600427e3faa35da18707a3d6652
|
4
|
+
data.tar.gz: b392af634020c9af67868d26b1f5027f69dcd1a7395da4132ce20276459f47a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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
|