The Ruby client library for the Tuneup Technology App.
This library allows you to interact with the customers, tickets, inventory, and locations objects without needing to do the hard work of binding your calls and data to endpoints. Simply call an action such as Customer.create
and pass some data and let the library do the rest.
# Install the client library
gem install tuneuptechnology
require 'tuneuptechnology'
client = TuneupTechnology::Client.new ENV['API_EMAIL'], ENV['API_KEY']
customer = client.customers.create(
{
'firstname' => 'Jake',
'lastname' => 'Peralta',
'email' => 'jake@example.com',
'phone' => '8015551234',
'user_id' => 1,
'notes' => 'Believes he is a good detective.',
'location_id' => 2
}
)
puts customer
Other examples can be found in the /examples
directory. Alter according to your needs.
API_EMAIL=email@example.com API_KEY=123... ruby create_customer.rb
Up-to-date API documentation can be found here.
# Install locally
bundle install
# Lint project
rubocop
# Run tests
bundle exec rspec
As a separate PR from the feature/bug PR:
- Update the version string in
tuneuptechnology.rb
andtuneuptechnology.gemspec
files - Update
CHANGELOG
- Create a GitHub tag with proper Ruby version semantics (eg: v1.0.0)
- Publish to RubyGems