Module: Localeapp::ApiCall

Included in:
CLI::Copy, CLI::Pull, CLI::Push, CLI::Remove, CLI::Rename, KeyChecker, Poller, Sender
Defined in:
lib/localeapp/api_call.rb

Instance Method Summary collapse

Instance Method Details

#api_call(endpoint, options = {}) ⇒ Object

creates an object to perform the call



4
5
6
7
# File 'lib/localeapp/api_call.rb', line 4

def api_call(endpoint, options = {})
  api_caller = Localeapp::ApiCaller.new(endpoint, options)
  api_caller.call(self)
end