icalia-sdk-event-core 0.1.5 → 0.1.6
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/deserializable_oauth_access_token.rb +25 -0
- data/lib/icalia-sdk-event-core/serialization/deserializable_oauth_application.rb +14 -0
- data/lib/icalia-sdk-event-core/serialization/deserializable_resource_creation_timestamp.rb +1 -1
- data/lib/icalia-sdk-event-core/serialization.rb +7 -1
- data/lib/icalia-sdk-event-core/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9137f619a744b28bbefaf0caf79c5851aa181695bdac2874ecc849fa6acfc22
|
4
|
+
data.tar.gz: 0a7e6f5e7b98d4c547b5b8bf913a98b2a33c3500fca51b3b33d65e9c65ecc1fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62359f6d78c4340db8e01f48f7920f1d1c1ea803484d4b07e773053fed4357c341663f6816af223407c673b3e4e69babdc4743a67d9a5c2ca4a49ac9212680f2
|
7
|
+
data.tar.gz: 6de6adbae67647d2c7a356a79d71a2ba1ed6ace40d718e742f6e81f50004ff96a0b24556cfdf570bd78068b5ef75fe03319a9b98b1b842048be39017049d2f3e
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Icalia::Event
|
4
|
+
#= DeserializableOauthAccessToken
|
5
|
+
#
|
6
|
+
# This class is responsible for converting a JSONAPI.org representation of an
|
7
|
+
# Icalia OAuth Access Token
|
8
|
+
class DeserializableOauthAccessToken < JSONAPI::Deserializable::Resource
|
9
|
+
include DeserializableResourceIdentity
|
10
|
+
include DeserializableResourceCreationTimestamp
|
11
|
+
|
12
|
+
attributes :scopes
|
13
|
+
|
14
|
+
attribute(:'expires-at') { |value| Hash[expires_at: value] }
|
15
|
+
attribute(:'revoked-at') { |value| Hash[revoked_at: value] }
|
16
|
+
|
17
|
+
has_one :application do |_rel, id, type|
|
18
|
+
Hash[application_id: id, application_type: classify_type(type)]
|
19
|
+
end
|
20
|
+
|
21
|
+
has_one :'resource-owner' do |_rel, id, type|
|
22
|
+
Hash[resource_owner_id: id, resource_owner_type: classify_type(type)]
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Icalia::Event
|
4
|
+
#= DeserializableOauthApplication
|
5
|
+
#
|
6
|
+
# This class is responsible for converting a JSONAPI.org representation of an
|
7
|
+
# Icalia OAuth Application
|
8
|
+
class DeserializableOauthApplication < JSONAPI::Deserializable::Resource
|
9
|
+
include DeserializableResourceIdentity
|
10
|
+
include DeserializableResourceTimestamps
|
11
|
+
|
12
|
+
attributes :name
|
13
|
+
end
|
14
|
+
end
|
@@ -34,7 +34,13 @@ module Icalia
|
|
34
34
|
# Deserializable Objects
|
35
35
|
|
36
36
|
autoload :DeserializableUser,
|
37
|
-
|
37
|
+
"#{serialization_path}/deserializable_user"
|
38
|
+
|
39
|
+
autoload :DeserializableOauthAccessToken,
|
40
|
+
"#{serialization_path}/deserializable_oauth_access_token"
|
41
|
+
|
42
|
+
autoload :DeserializableOauthApplication,
|
43
|
+
"#{serialization_path}/deserializable_oauth_application"
|
38
44
|
|
39
45
|
autoload :DeserializableOrganization,
|
40
46
|
"#{serialization_path}/deserializable_organization"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Quintanilla
|
@@ -85,7 +85,9 @@ files:
|
|
85
85
|
- lib/icalia-sdk-event-core/serialization/deserializable_code_repository.rb
|
86
86
|
- lib/icalia-sdk-event-core/serialization/deserializable_code_repository_event.rb
|
87
87
|
- lib/icalia-sdk-event-core/serialization/deserializable_membership_event.rb
|
88
|
+
- lib/icalia-sdk-event-core/serialization/deserializable_oauth_access_token.rb
|
88
89
|
- lib/icalia-sdk-event-core/serialization/deserializable_oauth_access_token_event.rb
|
90
|
+
- lib/icalia-sdk-event-core/serialization/deserializable_oauth_application.rb
|
89
91
|
- lib/icalia-sdk-event-core/serialization/deserializable_organization.rb
|
90
92
|
- lib/icalia-sdk-event-core/serialization/deserializable_organization_event.rb
|
91
93
|
- lib/icalia-sdk-event-core/serialization/deserializable_property_resource.rb
|