Sha256: bdd8afa0cfcef7ddce05c01bd0bd0245a9ee286aa98b9cbcd0e42297f87d20ab
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
module Quaderno class Report < Base api_model Quaderno::Report api_path 'reports' class << self undef :all, :find, :create, :update, :delete, :parse_nested end def self.journal(options = {}) authentication = get_authentication(options.merge(api_model: api_model)) filter = options.delete_if { |k,v| %w(auth_token access_token api_url mode api_model).include? k.to_s } response = get("#{authentication[:url]}#{api_model.api_path}/journal.json", query: filter, basic_auth: authentication[:basic_auth], headers: version_header.merge(authentication[:headers]) ) check_exception_for(response, { rate_limit: true, subdomain_or_token: true }) response.parsed_response end def self.taxes(options = {}) authentication = get_authentication(options.merge(api_model: api_model)) filter = options.delete_if { |k,v| %w(auth_token access_token api_url mode api_model).include? k.to_s } response = get("#{authentication[:url]}#{api_model.api_path}/taxes.json", query: filter, basic_auth: authentication[:basic_auth], headers: version_header.merge(authentication[:headers]) ) check_exception_for(response, { rate_limit: true, subdomain_or_token: true }) response.parsed_response end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quaderno-1.13.2 | lib/quaderno-ruby/report.rb |
quaderno-1.13.1 | lib/quaderno-ruby/report.rb |