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, #id, #pagination, #params, #path_prefix, #total

Instance Method Summary collapse

Methods included from CUD

#create, #destroy, #patch

Methods inherited from ResourceProxy

accept_header, #all, #all_parallel, #build_prefix, #initialize, #method_missing, #paginate, #raw, #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, &block) ⇒ Object



53
54
55
56
# File 'lib/ghee/api/orgs.rb', line 53

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