Class: Hover::Client::Manowar

Inherits:
Hover show all
Defined in:
lib/hover/client/manowar.rb

Instance Attribute Summary

Attributes inherited from HMAC

#client_id, #client_secret

Attributes inherited from HTTP

#prefix, #site

Instance Method Summary collapse

Methods inherited from Hover

#json_delete, #json_get, #json_patch, #json_post, #json_put

Methods inherited from HMAC

#authenticate, #initialize

Methods inherited from HTTP

#authenticate, #delete, #get, #get_redirect_location, #initialize, #make_form_request, #make_request, #make_uri, #parse_response, #patch, #post, #put, #raise_errors, #raise_errors_for_cloudfront_response

Constructor Details

This class inherits a constructor from Hover::Client::HMAC

Instance Method Details

#order_results(order_id) ⇒ Object



11
12
13
# File 'lib/hover/client/manowar.rb', line 11

def order_results(order_id)
  json_get("orders/#{order_id}/results.json")
end

#submit_order(parameters = {}) ⇒ Object



7
8
9
# File 'lib/hover/client/manowar.rb', line 7

def submit_order(parameters = {})
  json_post('orders.json', parameters)
end