class Cuenote::Api::Base

Public Class Methods

connection(command) click to toggle source
# File lib/cuenote/api/base.rb, line 6
def self.connection(command)
  Connection.new(command)
end
run(command, params={}) click to toggle source
# File lib/cuenote/api/base.rb, line 10
def self.run(command, params={})
  connection(Command.new(command, params)).response
end

Public Instance Methods

connection(command) click to toggle source
# File lib/cuenote/api/base.rb, line 14
def connection(command)
  self.class.connection command
end
run(command, params={}) click to toggle source
# File lib/cuenote/api/base.rb, line 18
def run(command, params={})
  self.class.run command, params
end