Class: Quickeebooks::Online::Model::IntuitType
- Inherits:
-
Object
- Object
- Quickeebooks::Online::Model::IntuitType
- Includes:
- ROXML
- Defined in:
- lib/quickeebooks/online/model/intuit_type.rb
Direct Known Subclasses
Account, AccountReference, Address, CompanyMetaData, CreditCard, CreditChargeInfo, CreditChargeResponse, Customer, CustomerCustomField, Email, Id, Invoice, InvoiceHeader, InvoiceLineItem, Item, MetaData, Note, OpenBalance, Payment, PaymentDetail, PaymentHeader, PaymentLineItem, Phone, Price, PurchaseCost, UnitPrice, 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
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>
15 16 17 |
# File 'lib/quickeebooks/online/model/intuit_type.rb', line 15 def self.resource_for_collection self::REST_RESOURCE end |
.resource_for_singular ⇒ Object
19 20 21 |
# File 'lib/quickeebooks/online/model/intuit_type.rb', line 19 def self.resource_for_singular self::REST_RESOURCE end |