dit3-api 0.0.10 → 0.0.11

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: f884943f360236bbc87a1b8ad49b77e85163424e
4
- data.tar.gz: 87014abcaac09a2e66b57103efc5f6dfe83186b3
3
+ metadata.gz: ea5e5abdb6811c9a6b7a067b4c853a2de6ef00f3
4
+ data.tar.gz: 6933bf411feed9df5d0b769119b6b027e2c2d905
5
5
  SHA512:
6
- metadata.gz: 3db96e53f4b676b8af0fef9759e3007405d5f58941fabe2a6b197b85a5b73720b860377d8e1daff501f97e71ca50ecac5e88e6fae8801f583ed1075baf8f07b0
7
- data.tar.gz: ff5d3692f2c8a27e35e43a0b934f3be1a867059022a9f48cc3b95f902eb00b2c4cd0b5cc29a1bdc7cea90ce6ef71115573df552351083df9218903191c4d64eb
6
+ metadata.gz: a7825763c76254523c6b340636ab9de5ccdb4466fb200315a80b090be9fafc1294789791825983a37fb84a7a5ae5ad49c8d6ca62b60633d131a0d2aa9c3bda28
7
+ data.tar.gz: 9bbae10dea6cc65b46cbb00691c1ee1adf7d08e53b3a2e980b0cf6ebb6900195c0d215a9855fc5563edc763f624c6f306c4e0f13dee88e397228ee55e71a4bae
@@ -72,7 +72,7 @@ module DIT3::Api
72
72
  private
73
73
 
74
74
  def get_token oauth_client
75
- opts = { :params => { :scope => oauth_client.normalize_scope(['platform.tenants.read', 'platform.tenants.write', 'platform.tenants.delete']) }}
75
+ opts = { :params => { :scope => oauth_client.normalize_scope(['platform.tenants.read', 'platform.tenants.write', 'platform.tenants.delete', 'platform.accounts.read', 'platform.accounts.write']) }}
76
76
  response = oauth_client.client_credentials.get_token(opts)
77
77
  if (!response.kind_of? Net::HTTPSuccess)
78
78
  raise ApiError, "Failed to get access token: #{response.body}"
@@ -1,9 +1,17 @@
1
1
  module DIT3::Api::Model
2
- class Tenant
2
+ class Account
3
+ attr_reader :id
3
4
  attr_reader :name
5
+ attr_reader :email
6
+ attr_reader :locale
7
+ attr_reader :tenant
4
8
 
5
9
  def initialize hash
10
+ @id = hash['id']
6
11
  @name = hash['name']
12
+ @email = hash['email']
13
+ @locale = hash['locale']
14
+ @tenant = hash['tenant']
7
15
  end
8
16
  end
9
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dit3-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Maraev