Class: Quickeebooks::Online::Model::IntuitType
- Inherits:
-
Object
- Object
- Quickeebooks::Online::Model::IntuitType
- Defined in:
- lib/quickeebooks/online/model/intuit_type.rb
Direct Known Subclasses
Account, AccountReference, Address, Bill, BillHeader, BillLineItem, BillPayment, BillPaymentHeader, BillPaymentLineItem, Clazz, CompanyMetaData, CreditCard, CreditChargeInfo, CreditChargeResponse, Customer, CustomerCustomField, Email, Employee, Id, Invoice, InvoiceHeader, InvoiceLineItem, Item, Job, JournalEntry, JournalEntryHeader, JournalEntryLineItem, MetaData, Note, OpenBalance, Payment, PaymentDetail, PaymentHeader, PaymentLineItem, PaymentMethod, Phone, Price, PurchaseCost, ReimbursableInfo, SalesReceipt, SalesReceiptHeader, SalesReceiptLineItem, SalesTerm, TimeActivity, TimeActivityEmployee, TimeActivityVendor, TrackingClass, UnitPrice, Vendor, WebSite, Windows::Model::Email
Class Method Summary collapse
-
.resource_for_collection ⇒ Object
These can be over-ridden in each model object as needed For the most part a model object has a single resource for all operations E.g.
- .resource_for_singular ⇒ Object
Methods included from Logging
Class Method Details
.resource_for_collection ⇒ Object
These can be over-ridden in each model object as needed For the most part a model object has a single resource for all operations E.g. <baseURL>/resource/invoice/v2/<realmID> But for the Account object its collection is plural while all other operations are singular E.g. Fetch all accounts: <baseURL>/resource/accounts/v2/<realmID>
vs
Create an account, fetch an account, etc: <baseURL>/resource/account/v2/<realmID>
17 18 19 |
# File 'lib/quickeebooks/online/model/intuit_type.rb', line 17 def self.resource_for_collection "#{self::REST_RESOURCE}s" end |
.resource_for_singular ⇒ Object
21 22 23 |
# File 'lib/quickeebooks/online/model/intuit_type.rb', line 21 def self.resource_for_singular self::REST_RESOURCE end |