Skip to content
Kashflow API wrapper for Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec-old
spec
.gitignore
.travis.yml
Gemfile
README.markdown
Rakefile
kashflow_api.gemspec

README.markdown

KashflowApi

Build Status Code Climate Coverage Status

KashflowApi provides an Active Record like interface to the Kashflow API.

Install

You can install KashflowApi by adding it yo your Gemfile like this:

gem 'kashflow_api'

and running bundle install

Usage

At the beginning of your program, or in an rails initializer call the configure block like so:

KashflowApi.configure do |c|
  c.username = "Username"
  c.password = "Password"
  c.loggers = false
end

I recommend settings loggers to false so that you don't get all the soap exchanges echoed out.

You can now call methods on the models e.g.

KashflowApi::Customer.all
KashflowApi::Customer.find("Cust01")
KashflowApi::Customer.find_by_email("customer@domain.tld")

Saving

All the Kashflow objects in the gem have a .save method which will either insert a new record or update the current one.

More Info

For more info head over to the wiki

You can’t perform that action at this time.