Class: Posthubify::UsersResource
- Inherits:
-
Object
- Object
- Posthubify::UsersResource
- Defined in:
- lib/posthubify/resources/platform.rb
Overview
Team users (Node sdk .users).
Instance Method Summary collapse
-
#get(id) ⇒ Object
Get a single user.
-
#initialize(http) ⇒ UsersResource
constructor
A new instance of UsersResource.
-
#list ⇒ Object
List team users.
Constructor Details
#initialize(http) ⇒ UsersResource
Returns a new instance of UsersResource.
191 192 193 |
# File 'lib/posthubify/resources/platform.rb', line 191 def initialize(http) @http = http end |
Instance Method Details
#get(id) ⇒ Object
Get a single user.
201 202 203 |
# File 'lib/posthubify/resources/platform.rb', line 201 def get(id) @http.data('GET', "/users/#{id}") end |
#list ⇒ Object
List team users.
196 197 198 |
# File 'lib/posthubify/resources/platform.rb', line 196 def list @http.data('GET', '/users') end |