Class Quickbooks::Model
In: lib/quickbooks/model.rb
Parent: Object

Methods

Public Class methods

The default for all subclasses is simply to apply the attributes given, and mark the object as a new_record?

Read-only attributes: These are attributes, but not modifiable in Quickbooks

Register multiple read/writable properties at once. For example:

  read_write :first_name, :last_name, :phone, :alt_phone

For reference attributes (like parent_ref), use ParentRef - a class constant for that object. read_write will set the property setter and accessor accordingly.

Public Instance methods

Returns a hash that represents all this object‘s attributes.

Updates all attributes included in attrs to the values given. The object will now be dirty?.

Returns true if any attributes have changed since the object was last loaded or updated from Quickbooks.

Returns a hash of the attributes and their (new) values that have been changed since the object was last loaded or updated from Quickbooks. If you send in some attributes, it will compare to those given instead of original_attributes.

Keeps track of the original values the object had when it was instantiated from a quickbooks response. dirty? and dirty_attributes compare the current values with these ones.

[Validate]