Class: Satis::CallToAction::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/satis/call_to_action/component.rb

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

Methods inherited from ApplicationComponent

add_helper, #component_name

Constructor Details

#initialize(identifier = nil, icon: nil, title: nil, description: nil, style: :regular) ⇒ Component

Returns a new instance of Component.



10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/components/satis/call_to_action/component.rb', line 10

def initialize(identifier = nil,
  icon: nil,
  title: nil,
  description: nil,
  style: :regular)
  super

  @identifier = identifier
  @title = title
  @description = description
  @style = style
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



8
9
10
# File 'app/components/satis/call_to_action/component.rb', line 8

def description
  @description
end

#identifierObject (readonly)

Returns the value of attribute identifier.



8
9
10
# File 'app/components/satis/call_to_action/component.rb', line 8

def identifier
  @identifier
end

#styleObject (readonly)

Returns the value of attribute style.



8
9
10
# File 'app/components/satis/call_to_action/component.rb', line 8

def style
  @style
end

#titleObject (readonly)

Returns the value of attribute title.



8
9
10
# File 'app/components/satis/call_to_action/component.rb', line 8

def title
  @title
end