Class: Ghee::API::Proxy

Inherits:
ResourceProxy show all
Defined in:
lib/ghee/api/downloads.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

#downloads(id = nil) ⇒ Object



49
50
51
52
# File 'lib/ghee/api/downloads.rb', line 49

def downloads(id=nil)
  prefix = id ?  "#{path_prefix}/downloads/#{id}" :"#{path_prefix}/downloads"
  Ghee::API::Downloads::Proxy.new(connection, prefix)
end