module TodoistClient::ApiClient
Constants
- BASE_URI
Public Class Methods
included(klass)
click to toggle source
# File lib/todoist_client/api_client.rb, line 5 def self.included(klass) klass.extend ClassMethods end
Public Instance Methods
set_params(params)
click to toggle source
# File lib/todoist_client/api_client.rb, line 17 def set_params(params) params.each do |k,v| self.send "#{k}=", v if self.respond_to? "#{k}=" end end
with_remote_object(&block)
click to toggle source
# File lib/todoist_client/api_client.rb, line 9 def with_remote_object(&block) if id block.call if block_given? else raise RemoteObjectNotExists end end