Class: CustomerMatchAudience

Inherits:
ApplicationRecord show all
Defined in:
app/models/customer_match_audience.rb

Overview

Tracks the Google Data Manager API Customer Match user list backing each
audience, plus its last sync state. One row per audience key
("audience-", from Marketing::Audiences::Target#key).

Constant Summary

Constants included from Models::Schedulable

Models::Schedulable::SIMPLE_FORM_OPTIONS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::Schedulable

config

Methods included from Models::AfterCommittable

#after_commit

Methods included from Models::EventPublishable

#publish_event

Instance Attribute Details

#segmentObject (readonly)



9
# File 'app/models/customer_match_audience.rb', line 9

validates :segment, presence: true, uniqueness: true

Instance Method Details

#provisioned?Boolean

Returns true once the Google user list has been provisioned.

Returns:

  • (Boolean)

    true once the Google user list has been provisioned



12
13
14
# File 'app/models/customer_match_audience.rb', line 12

def provisioned?
  user_list_id.present?
end