Class: ViewCampaignDelivery

Inherits:
ApplicationViewRecord show all
Includes:
Models::SearchableView
Defined in:
app/models/view_campaign_delivery.rb

Overview

== Schema Information

Table name: view_campaign_deliveries
Database name: primary

id :integer primary key
combined_state :text
communication_recipient_state :string(25)
email :string(255)
state :string
created_at :datetime
campaign_email_id :integer
communication_id :integer
communication_recipient_id :integer
subscriber_id :integer

Belongs to collapse

Instance Method Summary collapse

Methods included from Models::SearchableView

#crm_link, #crm_link_subtitle, #has_columns?, #main_resource

Methods inherited from ApplicationViewRecord

create, create!

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::EventPublishable

#publish_event

Instance Method Details

#campaign_emailCampaignEmail



22
# File 'app/models/view_campaign_delivery.rb', line 22

belongs_to :campaign_email

#communicationCommunication



24
# File 'app/models/view_campaign_delivery.rb', line 24

belongs_to :communication

#communication_recipientCommunicationRecipient



23
# File 'app/models/view_campaign_delivery.rb', line 23

belongs_to :communication_recipient

#readonly?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'app/models/view_campaign_delivery.rb', line 26

def readonly?
  true
end

#subscriberSubscriber

Returns:

See Also:



21
# File 'app/models/view_campaign_delivery.rb', line 21

belongs_to :subscriber