Class: Invoicexpress::Models::BaseModel
- Inherits:
-
Object
- Object
- Invoicexpress::Models::BaseModel
- Defined in:
- lib/invoicexpress/models.rb
Direct Known Subclasses
Account, CashInvoice, CashInvoices, ChangeAccountTo, Chart, Client, ClientInvoices, CoreCashInvoice, CoreCreditNote, CoreDebitNote, CoreInvoice, CorePurchaseOrder, CoreSchedule, CoreSimplifiedInvoice, Credentials, CreditNote, CreditNotes, DebitNote, Filter, FilterArchived, FilterByType, FilterStatus, Graph, Graphs, Invoice, InvoiceState, InvoiceTemplate, Invoices, Item, Items, Message, MessageClient, PurchaseOrders, Quarter01, Quarter02, Quarter03, Quarter04, QuarterlyResult, Schedules, SentInvoices, Sequence, Series, SimplifiedInvoice, Supplier, Tax, TopClient, TopDebtor
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ BaseModel
constructor
A new instance of BaseModel.
Constructor Details
#initialize(attributes = {}) ⇒ BaseModel
Returns a new instance of BaseModel.
8 9 10 11 12 |
# File 'lib/invoicexpress/models.rb', line 8 def initialize(attributes = {}) super() attributes.each { |k,v| self.send("#{k}=", v) } end |