Class: Ghee::API::Orgs::Teams::Proxy

Inherits:
ResourceProxy show all
Includes:
CUD
Defined in:
lib/ghee/api/orgs.rb

Overview

Teams::Proxy inherits from Ghee::Proxy and enables defining methods on the proxy object

Instance Attribute Summary

Attributes inherited from ResourceProxy

#connection, #current_page, #pagination, #params, #path_prefix, #total

Instance Method Summary collapse

Methods included from CUD

#create, #destroy, #patch

Methods inherited from ResourceProxy

#all, #initialize, #method_missing, #paginate, #subject

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

#members(name = nil) ⇒ Object



44
45
46
47
# File 'lib/ghee/api/orgs.rb', line 44

def members(name=nil)
  prefix = name ? "#{path_prefix}/members/#{name}" : "#{path_prefix}/members"
  Ghee::API::Orgs::Teams::Members::Proxy.new(connection, prefix)
end