Class: DropboxApi::Endpoints::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/dropbox_api/endpoints/base.rb

Direct Known Subclasses

ContentDownload, ContentUpload, Rpc

Class Method Summary collapse

Class Method Details

.add_endpoint(name, &block) ⇒ Object


3
4
5
6
# File 'lib/dropbox_api/endpoints/base.rb', line 3

def self.add_endpoint(name, &block)
  define_method(name, block)
  DropboxApi::Client.add_endpoint(name, self)
end