module Emarsys::FieldMapping
Constants
- ATTRIBUTES
Public Class Methods
add_attributes(attrs)
click to toggle source
# File lib/emarsys/field_mapping.rb, line 67 def self.add_attributes(attrs) attributes.concat([attrs].flatten) end
attributes()
click to toggle source
# File lib/emarsys/field_mapping.rb, line 56 def self.attributes return @custom_attributes if excluded_default_attributes? return ATTRIBUTES.dup.concat(@custom_attributes) if @custom_attributes ATTRIBUTES end
excluded_default_attributes?()
click to toggle source
# File lib/emarsys/field_mapping.rb, line 71 def self.excluded_default_attributes? @exclude_default_attributes == true end
set_attributes(attrs)
click to toggle source
# File lib/emarsys/field_mapping.rb, line 62 def self.set_attributes(attrs) @exclude_default_attributes = true @custom_attributes = [attrs].flatten end