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(template, configuration, property_base_name, options) ⇒ Div

Returns a new instance of Div


24
25
26
27
28
29
# File 'app/helpers/pageflow/background_image_helper.rb', line 24

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

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration


20
21
22
# File 'app/helpers/pageflow/background_image_helper.rb', line 20

def configuration
  @configuration
end

#optionsObject (readonly)

Returns the value of attribute options


20
21
22
# File 'app/helpers/pageflow/background_image_helper.rb', line 20

def options
  @options
end

#property_base_nameObject (readonly)

Returns the value of attribute property_base_name


20
21
22
# File 'app/helpers/pageflow/background_image_helper.rb', line 20

def property_base_name
  @property_base_name
end

Instance Method Details

#renderObject


31
32
33
# File 'app/helpers/pageflow/background_image_helper.rb', line 31

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