Sha256: d33f215435a11ecc4a722bdd613295907e35121bbc8c4a364c69cf6aa603714c
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
module CiviCrm module Actions module Find module ClassMethods def find(id) params = {'entity' => entity_class_name, 'action' => 'getsingle', 'id' => id} response = CiviCrm::Client.request(:get, params) Resource.build_from(response.first, params) 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/find.rb |