oauth_im 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/oauth_im/has_registration_data.rb +8 -0
- data/lib/oauth_im/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e0f366f5c38cc82da877d02f34ca778bcee19235b9b286fbf449e8cd1c5e2cf
|
4
|
+
data.tar.gz: 52c299ea3e29fb97c74643cbdbcbf90ff06a0104cb8e3b1eb2a35a8418432810
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df9b7b1c12bcfc6fe06b3c48c0c337a1dfc24060c0812f575d29b6f972cf6b1ff15bb4c92513f03f87701e0a266f4773fd78ad4954535be8156a0322782155df
|
7
|
+
data.tar.gz: 2fdca9e46d141266cecb01b2cdaea5ffb00182cdb24f2db87a8624c9a641aa5f7bd8edf49b5e23988d962f1ea6e1f2e18a9bd00c9dc938a2b71909a4eba75558
|
@@ -22,6 +22,10 @@ module OauthIm
|
|
22
22
|
@registration_data ||= attrs[:registrations]&.first&.data || {}
|
23
23
|
end
|
24
24
|
|
25
|
+
def active?
|
26
|
+
attrs.active
|
27
|
+
end
|
28
|
+
|
25
29
|
def sponsor?
|
26
30
|
registration_data[:sponsor].eql? 'true'
|
27
31
|
end
|
@@ -37,5 +41,9 @@ module OauthIm
|
|
37
41
|
def last_name
|
38
42
|
attrs.lastName
|
39
43
|
end
|
44
|
+
|
45
|
+
def full_name
|
46
|
+
@full_name ||= "#{first_name} #{last_name}"
|
47
|
+
end
|
40
48
|
end
|
41
49
|
end
|
data/lib/oauth_im/version.rb
CHANGED