Class: CollavreLinear::CreativeExporter::CreativeAdapter

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



36
37
38
# File 'app/services/collavre_linear/creative_exporter.rb', line 36

def data
  @data
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



36
37
38
# File 'app/services/collavre_linear/creative_exporter.rb', line 36

def description
  @description
end

#sequenceObject

Returns the value of attribute sequence

Returns:

  • (Object)

    the current value of sequence



36
37
38
# File 'app/services/collavre_linear/creative_exporter.rb', line 36

def sequence
  @sequence
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



36
37
38
# File 'app/services/collavre_linear/creative_exporter.rb', line 36

def title
  @title
end