Module: Kashflow
- Defined in:
- lib/kashflow/api.rb,
lib/kashflow.rb,
lib/kashflow/client.rb,
lib/kashflow/api_method.rb
Overview
Kashflow.export_yaml will scrape the public API site for methods and dump them into the YAML config we use. we probably can/should just get this from the WSDL directly, but Savon wasn’t working right, so this is the stopgap measure
Defined Under Namespace
Classes: Api, ApiMethod, Client
Class Method Summary
collapse
Class Method Details
.client(login, password) ⇒ Object
9
10
11
|
# File 'lib/kashflow.rb', line 9
def self.client(login, password)
@client ||= Kashflow::Client.new(login, password)
end
|
.method_missing(method, *args, &block) ⇒ Object
13
14
15
16
|
# File 'lib/kashflow.rb', line 13
def self.method_missing(method, *args, &block)
return super unless client.respond_to?(method)
client.send(method, *args, &block)
end
|
.root ⇒ Object
18
19
20
|
# File 'lib/kashflow.rb', line 18
def self.root
File.dirname(File.expand_path('..', __FILE__))
end
|