gem 'twinfield-ruby'
Create a configuration instance you can use in requests. The last argument is optional.
config = Twinfield::Configuration.new(username, password, organisation, office)
The configuration can be used create a new Process.
process = Twinfield::Process.new(config)
Or you can use it to create a new Session.
session = Twinfield::Session.new(config)
With the Process you can execute requests.
process.search(params)
process.request(action, params)
Or with the Session.
session.service(:process).action(:search, params)