Sha256: df97f3b1fc0ba6fa4cf54ae7321696b58827e58fdca3ed87717d605526f4f156
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
module CiviCrm module Actions module List module ClassMethods def all(params = {}) params.merge!('entity' => entity_class_name, 'action' => 'get') response = CiviCrm::Client.request(:get, params) Resource.build_from(response, params) end def count all.count end def first all.first end def last all.last end end def self.included(base) base.extend(ClassMethods) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
civicrm-1.0.1 | lib/civicrm/actions/list.rb |