CarbonPms
If you're not using a CarbonPMS server, then you don't need this.
Installation
Add this line to your application's Gemfile:
gem 'carbon_pms'
And then execute:
$ bundle
Or install it yourself as:
$ gem install carbon_pms
Usage
require 'carbon_pms'
client = CarbonPms::Client.new('example.com', 'auth_token', API_VERSION)
client.create_app(name: 'foo', auth_key: '123123')
You can also initialize the client with a configuration block:
# config/initializers/carbon_pms.rb (for instance)
CarbonPms.configure do |config|
config.host = 'example.com'
config.auth_token = 'abcdef'
config.version = '42'
end
# elsewhere
client = CarbonPms.Client.new
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request