Class: CustomerMatchAudience
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- CustomerMatchAudience
- 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
- #segment ⇒ Object readonly
Instance Method Summary collapse
-
#provisioned? ⇒ Boolean
True once the Google user list has been provisioned.
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::Schedulable
Methods included from Models::AfterCommittable
Methods included from Models::EventPublishable
Instance Attribute Details
#segment ⇒ Object (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.
12 13 14 |
# File 'app/models/customer_match_audience.rb', line 12 def provisioned? user_list_id.present? end |