Class: Ghee::API::Users::Memberships::Proxy
- Inherits:
-
ResourceProxy
- Object
- ResourceProxy
- Ghee::API::Users::Memberships::Proxy
- Defined in:
- lib/ghee/api/users.rb
Overview
Memberships::Proxy inherits from Ghee::Proxy and enables defining methods on the proxy object
Instance Attribute Summary
Attributes inherited from ResourceProxy
#connection, #current_page, #id, #pagination, #params, #path_prefix, #total
Instance Method Summary collapse
-
#org(name, &block) ⇒ Object
Org membership for the user.
Methods inherited from ResourceProxy
accept_header, #all, #all_parallel, #build_prefix, #initialize, #method_missing, #paginate, #raw, #subject
Methods included from CUD
Constructor Details
This class inherits a constructor from Ghee::ResourceProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ghee::ResourceProxy
Instance Method Details
#org(name, &block) ⇒ Object
Org membership for the user
State: string to limit scope to either active or pending
Returns json
42 43 44 45 |
# File 'lib/ghee/api/users.rb', line 42 def org(name, &block) prefix = "#{path_prefix}/#{name}" Ghee::API::Membership::MembershipProxy.new(connection, prefix, nil, &block) end |