Class: Infopark::Crm::Mailing

Inherits:
Core::Resource show all
Defined in:
lib/crm_connector/mailing.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

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

Searches for mailings

Examples:

results = Infopark::Crm::Mailing.search(:params => {:event_id => event_id})
results = Infopark::Crm::Mailing.search(:params => {:only_unreleased => true})
results = Infopark::Crm::Mailing.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/mailings/search


14
# File 'lib/crm_connector/mailing.rb', line 14

has_search

Instance Method Details

#eventInfopark::Crm::Event

Queries the WebCRM for the Event with the id event_id.

Returns:

WebCRM Rest Url:

  • GET /api/events/event_id


32
33
34
# File 'lib/crm_connector/mailing.rb', line 32

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