frederick_api 0.4.3 → 0.4.4

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: 885bbe71573e83a6cd26d1321539c05885b09bf3
4
- data.tar.gz: d8154b394e152ed1b15fa57704cec9588bdb083c
3
+ metadata.gz: 711d8e8257f97e7ad18803cca7b24e8e87a9f43e
4
+ data.tar.gz: baf134c2da2e7da52cfeb7a75ccd5b90a18a2200
5
5
  SHA512:
6
- metadata.gz: '049c7b295aaeed0a069646b36cb66c95a6a4b6e4ccec7807c522e33e6fb0e16358ac3a71841dc3ab97c65f3b25eecfd45bd3277787ffa172fc6ecbe0353438f4'
7
- data.tar.gz: da213d17ac1a57a7b176f8fa3e4e8e43b3d85299f84fb52cadd3c04714cb8d819ce9930867390a4402e7275fdf6ee30bf1866dcbce02a730242c9b9f0ca1b591
6
+ metadata.gz: 294478020b031f49b7f5ae1a636977ff5301befb4892f44b9526ddec5037c2b2f4f6461a391e7661ed70db4cdf05177f696bb08c63f158c0d6f1ee4ba7855dff
7
+ data.tar.gz: fbce1720a78066c1caeeb2e1da9dbf688f250eacea4fa407307a838d492ef898ff8791cbdd83c7cfe1d38462b5f456f1643acc8772063ca7163c5d8effb1df45
@@ -29,6 +29,7 @@ require 'frederick_api/v2/contact_property'
29
29
  require 'frederick_api/v2/contact_list'
30
30
  require 'frederick_api/v2/contact_type'
31
31
  require 'frederick_api/v2/interaction'
32
+ require 'frederick_api/v2/role'
32
33
 
33
34
  # Namespace for all Frederick API client methods/classes
34
35
  module FrederickAPI
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FrederickAPI
4
+ module V2
5
+ # /v2/users
6
+ class Role < Resource
7
+ has_many :users
8
+ end
9
+ end
10
+ end
@@ -4,7 +4,7 @@ module FrederickAPI
4
4
  module V2
5
5
  # /v2/users
6
6
  class User < Resource
7
- has_many :roles
7
+ has_many :roles, class_name: 'FrederickAPI::V2::Role'
8
8
  end
9
9
  end
10
10
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module FrederickAPI
4
4
  # Current gem version
5
- VERSION = '0.4.3'
5
+ VERSION = '0.4.4'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frederick_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederick Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-09 00:00:00.000000000 Z
11
+ date: 2018-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_api_client
@@ -51,6 +51,7 @@ files:
51
51
  - lib/frederick_api/v2/location.rb
52
52
  - lib/frederick_api/v2/public_resource.rb
53
53
  - lib/frederick_api/v2/resource.rb
54
+ - lib/frederick_api/v2/role.rb
54
55
  - lib/frederick_api/v2/user.rb
55
56
  - lib/frederick_api/version.rb
56
57
  homepage: https://github.com/HireFrederick/frederick_api_gem