Class: Infopark::Crm::EventContact
- Inherits:
-
Core::Resource
- Object
- ActiveResource::Base
- Core::Resource
- Infopark::Crm::EventContact
- Defined in:
- lib/crm_connector/event_contact.rb
Class Method Summary collapse
-
.search(input) ⇒ Array<Infopark::Crm::EventContact>
Searches for event contacts.
Instance Method Summary collapse
-
#contact ⇒ Infopark::Crm::Contact
Queries the WebCRM for the Contact with the id
contact_id
. -
#event ⇒ Infopark::Crm::Event
Queries the WebCRM for the Event with the id
event_id
.
Class Method Details
.search(input) ⇒ Array<Infopark::Crm::EventContact>
Searches for event contacts
15 |
# File 'lib/crm_connector/event_contact.rb', line 15 has_search |
Instance Method Details
#contact ⇒ Infopark::Crm::Contact
Queries the WebCRM for the Contact with the id 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 |
#event ⇒ Infopark::Crm::Event
Queries the WebCRM for the Event with the id 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 |