Repository is archived
No release in over a year
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 endpointspec. Simply call an action such as `Customer.create` and pass some data and let the library do the rest.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.82
~> 3
~> 0.21
~> 6

Runtime

 Project Readme

Tuneup Technology App Ruby Client Library

The Ruby client library for the Tuneup Technology App.

Build Status Coverage Status RubyGems Licence

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

# Install the client library
gem install tuneuptechnology

Example

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.

Usage

API_EMAIL=email@example.com API_KEY=123... ruby create_customer.rb

Documentation

Up-to-date API documentation can be found here.

Development

# Install locally
bundle install

# Lint project
rubocop

# Run tests
bundle exec rspec

Releasing

As a separate PR from the feature/bug PR:

  1. Update the version string in tuneuptechnology.rb and tuneuptechnology.gemspec files
  2. Update CHANGELOG
  3. Create a GitHub tag with proper Ruby version semantics (eg: v1.0.0)
  4. Publish to RubyGems