driftrock-service 0.4.10 → 0.4.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,11 @@ module Driftrock
4
4
  class DriftrockUser
5
5
  include ::Driftrock::Service::DriftrockModel
6
6
  set_api_path "/admin/users"
7
+
8
+ def self.companies_for(user_id)
9
+ get_from_api_method.call("/#{user_id}/companies")
10
+ end
11
+
7
12
  end
8
13
  end
9
14
  end
@@ -1,5 +1,5 @@
1
1
  module Driftrock
2
2
  module Service
3
- VERSION = "0.4.10"
3
+ VERSION = "0.4.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: driftrock-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-19 00:00:00.000000000 Z
12
+ date: 2013-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty