Class: Infopark::Crm::EventContact

Inherits:
Core::Resource
  • Object
show all
Defined in:
lib/crm_connector/event_contact.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.search(input) ⇒ Array<Infopark::Crm::EventContact>

Searches for event contacts

Examples:

results = Infopark::Crm::EventContacts.search(:params => {:event_id => eid})
results = Infopark::Crm::EventContacts.search(:params => {:contact_id => cid})
results = Infopark::Crm::EventContacts.search(:params => {:state => state})
results = Infopark::Crm::EventContacts.search(:params => {:q => 'full-text search'})

Parameters:

  • input (Hash)

    A hash containing a params key. The value of this key is a hash containing the actual search query.

Returns:

WebCRM Rest Url:

  • GET /api/event_contacts/search



15
# File 'lib/crm_connector/event_contact.rb', line 15

has_search

Instance Method Details

#contactInfopark::Crm::Contact

Queries the WebCRM for the Contact with the id contact_id.

Returns:

WebCRM Rest Url:

  • GET /api/contacts/contact_id



27
28
29
# File 'lib/crm_connector/event_contact.rb', line 27

def contact
  Infopark::Crm::Contact.find(contact_id) if contact_id
end

#eventInfopark::Crm::Event

Queries the WebCRM for the Event with the id event_id.

Returns:

WebCRM Rest Url:

  • GET /api/events/event_id



35
36
37
# File 'lib/crm_connector/event_contact.rb', line 35

def event
  Infopark::Crm::Event.find(event_id) if event_id
end