Class: Ghee::API::Repos::Commits::Proxy

Inherits:
ResourceProxy show all
Defined in:
lib/ghee/api/commits.rb,
lib/ghee/api/commit_comments.rb,
lib/ghee/api/commit_statuses.rb

Instance Attribute Summary

Attributes inherited from ResourceProxy

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

Instance Method Summary collapse

Methods inherited from ResourceProxy

accept_header, #all, #all_parallel, #build_prefix, #initialize, #method_missing, #paginate, #raw, #subject

Methods included from CUD

#create, #destroy, #patch

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

#comments(id = nil, &block) ⇒ Object



21
22
23
24
# File 'lib/ghee/api/commit_comments.rb', line 21

def comments(id=nil, &block)
  prefix = build_prefix id, "comments"
  Ghee::API::Repos::Commits::Comments::Proxy.new connection, prefix, id, &block
end

#status(&block) ⇒ Object



22
23
24
25
# File 'lib/ghee/api/commit_statuses.rb', line 22

def status(&block)
  prefix = build_prefix nil, "status"
  Ghee::API::Repos::Commits::Statuses::Proxy.new connection, prefix, id, &block
end

#statuses(id = nil, &block) ⇒ Object



18
19
20
21
# File 'lib/ghee/api/commit_statuses.rb', line 18

def statuses(id=nil, &block)
  prefix = build_prefix id, "statuses"
  Ghee::API::Repos::Commits::Statuses::Proxy.new connection, prefix, id, &block
end