Class: VtigerRuby::Account
- Inherits:
-
VtigerModel
- Object
- VtigerModel
- VtigerRuby::Account
- Defined in:
- lib/vtiger-ruby/models/account.rb
Constant Summary collapse
- VTIGER_MODULE =
'Accounts'.freeze
Instance Attribute Summary
Attributes inherited from VtigerModel
Class Method Summary collapse
Methods inherited from VtigerModel
all_from_vtiger, #attributes=, class_config, fetch_from_vtiger, #initialize
Constructor Details
This class inherits a constructor from VtigerRuby::VtigerModel
Class Method Details
.all ⇒ Object
5 6 7 |
# File 'lib/vtiger-ruby/models/account.rb', line 5 def self.all all_from_vtiger(self, 'select * from Accounts where :record_filter_clause') end |
.fetch(sql_query = nil) ⇒ Object
9 10 11 |
# File 'lib/vtiger-ruby/models/account.rb', line 9 def self.fetch(sql_query = nil) fetch_from_vtiger(self, sql_query) end |