# Ruby-Ecomm-Client Easy access to the e-commerce web services via Ruby ## Installation Add this line to your application's Gemfile: gem 'ruby-ecomm-client' And then execute: $ bundle Or install it yourself as: $ gem install ruby-ecomm-client ## Usage ```ruby shopper_id = '???' resource_type = 'outright' resource_id = '???' #aka account_uid client = RubyEcommClient::Client.new(shopper_id, resource_type, resource_id) client.express_checkout? => false client.account_info => { :product_id => '2701', :tree_id => '1735', :is_past_due => false, :is_free => false } source_tree_id = 0 client.transitions(source_tree_id) => [ { :node_name => 'Outright - Monthly Plus', :product_id => '2697', :tree_id => '1734', :is_free => 'False' } ] target_tree_id = ??? client.request_change(target_tree_id) => { :used_express_checkout => true, :request_result => 2 } ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request