Class: CollavreLinear::CreativeExporter::CreativeAdapter
- Inherits:
-
Struct
- Object
- Struct
- CollavreLinear::CreativeExporter::CreativeAdapter
- Defined in:
- app/services/collavre_linear/creative_exporter.rb
Overview
Thin adapter so FieldMapper's #title contract is met without touching core. Collavre::Creative has no :title column — we derive it from creative_snippet (plain-text truncation of the description used everywhere in the app).
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#description ⇒ Object
Returns the value of attribute description.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
36 37 38 |
# File 'app/services/collavre_linear/creative_exporter.rb', line 36 def data @data end |
#description ⇒ Object
Returns the value of attribute description
36 37 38 |
# File 'app/services/collavre_linear/creative_exporter.rb', line 36 def description @description end |
#sequence ⇒ Object
Returns the value of attribute sequence
36 37 38 |
# File 'app/services/collavre_linear/creative_exporter.rb', line 36 def sequence @sequence end |
#title ⇒ Object
Returns the value of attribute title
36 37 38 |
# File 'app/services/collavre_linear/creative_exporter.rb', line 36 def title @title end |