class Infopark::Crm::Mailing

Public Instance Methods

event() click to toggle source

Queries the WebCRM for the Event with the id event_id. @return [Infopark::Crm::Event] The event associated with this event contact, if event_id is present. @webcrm_rest_url GET /api/events/event_id

# File lib/crm_connector/mailing.rb, line 32
def event
  Infopark::Crm::Event.find(event_id) if event_id
end
unknown() click to toggle source

@!method self.search(input) Searches for mailings @param input [Hash] A hash containing a params key. The value of this key is a hash containing the actual search query. @return [Array<Infopark::Crm::Mailing>] @webcrm_rest_url GET /api/mailings/search @example

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'})
# File lib/crm_connector/mailing.rb, line 14
has_search

self.schema = {
  :body => :string,
  :dtstart_at => :time,
  :email_from => :string,
  :email_reply_to => :string,
  :email_subject => :string,
  :event_id => :string,
  :html_body => :string,
  :mailing_type => :string,
  :title => :string,
}