Class: Pageflow::BackgroundImageHelper::Div

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/pageflow/background_image_helper.rb

Direct Known Subclasses

DivWithSizeAttributes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry, template, configuration, property_base_name, options) ⇒ Div

Returns a new instance of Div.



32
33
34
35
36
37
38
# File 'app/helpers/pageflow/background_image_helper.rb', line 32

def initialize(entry, template, configuration, property_base_name, options)
  @entry = entry
  @template = template
  @configuration = configuration
  @property_base_name = property_base_name
  @options = options
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



28
29
30
# File 'app/helpers/pageflow/background_image_helper.rb', line 28

def configuration
  @configuration
end

#optionsObject (readonly)

Returns the value of attribute options.



28
29
30
# File 'app/helpers/pageflow/background_image_helper.rb', line 28

def options
  @options
end

#property_base_nameObject (readonly)

Returns the value of attribute property_base_name.



28
29
30
# File 'app/helpers/pageflow/background_image_helper.rb', line 28

def property_base_name
  @property_base_name
end

Instance Method Details

#renderObject



40
41
42
# File 'app/helpers/pageflow/background_image_helper.rb', line 40

def render
  (:div, '', class: css_class, style: inline_style, data: data_attributes)
end