Class: Quickbooks::Model::ChangeDataCapture
- Defined in:
- lib/quickbooks/model/change_data_capture.rb
Constant Summary collapse
- TYPES =
["Bill", "BillPayment", "CreditMemo", "Deposit", "Invoice", "JournalEntry", "Payment", "Purchase", "RefundReceipt", "SalesReceipt", "PurchaseOrder", "VendorCredit", "Transfer", "Estimate", "Account", "Budget", "Class", "Customer", "Department", "Employee", "Item", "PaymentMethod", "Term", "Vendor"]
Instance Attribute Summary collapse
-
#xml ⇒ Object
Returns the value of attribute xml.
Instance Method Summary collapse
- #all_types ⇒ Object
-
#time ⇒ Object
time when refresh was requests from cdc/ endpoiint more information @here - developer.intuit.com/app/developer/qbo/docs/develop/explore-the-quickbooks-online-api/change-data-capture#using-change-data-capture.
Methods inherited from BaseModel
#as_json, attribute_names, #attributes, attrs_with_types, #initialize, inspect, #inspect, reference_attrs, reference_setters, resource_for_collection, resource_for_singular, to_xml_big_decimal, #to_xml_inject_ns, #to_xml_ns
Methods included from Validator
Methods included from Definition
included, #is_name_list_entity?, #is_transaction_entity?
Constructor Details
This class inherits a constructor from Quickbooks::Model::BaseModel
Instance Attribute Details
#xml ⇒ Object
Returns the value of attribute xml.
5 6 7 |
# File 'lib/quickbooks/model/change_data_capture.rb', line 5 def xml @xml end |
Instance Method Details
#all_types ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/quickbooks/model/change_data_capture.rb', line 12 def all_types data = {} TYPES.each do |entity| if xml.css(entity).first != nil data[entity] = all_of_type(entity) end end data end |
#time ⇒ Object
time when refresh was requests from cdc/ endpoiint more information @here - developer.intuit.com/app/developer/qbo/docs/develop/explore-the-quickbooks-online-api/change-data-capture#using-change-data-capture
25 26 27 28 |
# File 'lib/quickbooks/model/change_data_capture.rb', line 25 def time attribute = xml.root.attribute('time') attribute.value if attribute end |