Class: Vpsa::Api::Receipts
Instance Attribute Summary
Attributes inherited from Client
Instance Method Summary collapse
Methods inherited from Client
#client_classes, #credit_limits, #default_entries, #entities, #initialize, #installments, #provisions, #receipts, #sales, #third_parties, #user_data
Methods included from ClassMethods
Constructor Details
This class inherits a constructor from Vpsa::Client
Instance Method Details
#find(id) ⇒ Object
16 17 18 |
# File 'lib/vpsa/api/receipts.rb', line 16 def find(id) return parse_response(self.class.get("/#{id}", :body => build_body, :headers => header)) end |
#list(searcher = nil) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/vpsa/api/receipts.rb', line 8 def list(searcher = nil) raise ArgumentError unless searcher.nil? || searcher.is_a?(Vpsa::Searcher::Financial::ReceiptSearcher) return parse_response(self.class.get("/", :body => build_body(searcher.as_parameter), :headers => header)) if searcher return parse_response(self.class.get("/", :body => build_body, :headers => header)) unless searcher end |