isaca 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c38c95789f898eb26dcd03fc06bcff1926c8c58b
|
4
|
+
data.tar.gz: 6d75fb5d7416ec8c914d6fdb4a3e3dd25a30f50e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adf4b9e63ca46bd02322db1bace60dd34318fe3c153e6c61c525aa2565e01043170395fa05e85cfb4e119a44f3dded0e3b22a0850c915786d3dee1c6aef2bb8c
|
7
|
+
data.tar.gz: 9b1ead55d0c97c50c2c7bdffb78c7bf5e4871d5f5f5d974a33ba9cccd15cf0745a3ec5f4566ff1b44730c184f6b9533b89114104ff733844f5b776fe81ecd4a8
|
data/Gemfile.lock
CHANGED
@@ -3,13 +3,20 @@ module ISACA
|
|
3
3
|
class GetUserDetailsByToken
|
4
4
|
attr_accessor :imis_id
|
5
5
|
attr_accessor :enterprise_id
|
6
|
-
attr_accessor :
|
6
|
+
attr_accessor :first_name
|
7
|
+
attr_accessor :last_name
|
7
8
|
attr_accessor :email
|
9
|
+
attr_accessor :username
|
10
|
+
attr_accessor :country
|
8
11
|
|
9
12
|
def initialize(hash)
|
10
13
|
@imis_id = hash['ID']
|
11
14
|
@enterprise_id = hash['Ent_ID']
|
12
|
-
@
|
15
|
+
@first_name = hash['First_Name']
|
16
|
+
@last_name = hash['Last_Name']
|
17
|
+
@email = hash['Email']
|
18
|
+
@username = hash['UserName']
|
19
|
+
@country = hash['Country']
|
13
20
|
end
|
14
21
|
end
|
15
22
|
end
|
@@ -7,7 +7,8 @@ module ISACA
|
|
7
7
|
request.params['token'] = token
|
8
8
|
end
|
9
9
|
|
10
|
-
|
10
|
+
data = JSON.parse(response.body, quirks_mode: true)
|
11
|
+
response.status == 200 ? ISACA::Model::GetUserDetailsByToken.new(ISACA::Helpers.parse_json(data)) : nil
|
11
12
|
end
|
12
13
|
end
|
13
14
|
end
|
data/lib/isaca/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isaca
|
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
|
- Matt Orahood
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|