Class: Quickbooks::ListItem

Inherits:
Base show all
Defined in:
lib/quickbooks/models/list_item.rb

Direct Known Subclasses

Customer

Instance Attribute Summary

Attributes inherited from Base

#response_log

Class Method Summary collapse

Methods inherited from Base

#==, all, connection, connection=, create, #destroy, establish_connection, first, #initialize, #inspect, instantiate, #new_record?, query, #reload, request, #save, #success?, use_adapter

Methods inherited from Model

#==, #===, #attributes, #attributes=, camelized_valid_filters, #dirty?, #dirty_attributes, filter_aliases, filter_aliases=, #initialize, #original_values, properties, read_only, read_write, #to_dirty_hash, #to_hash, valid_filters, valid_filters=

Constructor Details

This class inherits a constructor from Quickbooks::Base

Class Method Details

.inherited(klass) ⇒ Object



7
8
9
10
# File 'lib/quickbooks/models/list_item.rb', line 7

def self.inherited(klass)
  super
  klass.read_only :list_id, :full_name, :edit_sequence, :time_created, :time_modified, :time_deleted # :time_deleted only comes from ListDeleted, but ListDeleted attributes can be instantiated into ListItems
end

.ListOrTxnObject



13
14
15
# File 'lib/quickbooks/models/list_item.rb', line 13

def ListOrTxn
  'List'
end