to make your life easier
require "poster"
Poster::Base.products
Poster::Base.get("menu.getProducts")If you ever need to make custom calls (could be handy) lib/poster.rb:
module Poster
class Base
class << self
def transactions(params={})
get("dash.getTransactions", params.merge(include_products: true))
end
end
end
end- use Faraday
- add tests
- add callback validation