Class: Essence::ClipboardCopyComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/essence/clipboard_copy_component.rb

Constant Summary

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApplicationComponent

#assets_path, assets_path, images_directory

Methods included from Utils

#get_directory_file_names

Methods included from FetchOrFallbackHelper

#fetch_or_fallback, #fetch_or_fallback_boolean, #integer_or_fallback

Constructor Details

#initialize(input_name:, input_label: nil, input_value: nil, link_text: nil, link_confirmation_text: nil, **html_options) ⇒ ClipboardCopyComponent

Returns a new instance of ClipboardCopyComponent.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/components/essence/clipboard_copy_component.rb', line 7

def initialize(input_name:,
               input_label: nil,
               input_value: nil,
               link_text: nil,
               link_confirmation_text: nil,
               **html_options)
  @input_name             = input_name
  @input_label            = input_label || false
  @input_value            = input_value
  @link_text              = link_text
  @link_confirmation_text = link_confirmation_text
  @html_options           = html_options
end

Instance Attribute Details

#html_optionsObject (readonly)

Returns the value of attribute html_options.



5
6
7
# File 'app/components/essence/clipboard_copy_component.rb', line 5

def html_options
  @html_options
end

#input_labelObject (readonly)

Returns the value of attribute input_label.



5
6
7
# File 'app/components/essence/clipboard_copy_component.rb', line 5

def input_label
  @input_label
end

#input_nameObject (readonly)

Returns the value of attribute input_name.



5
6
7
# File 'app/components/essence/clipboard_copy_component.rb', line 5

def input_name
  @input_name
end

#input_valueObject (readonly)

Returns the value of attribute input_value.



5
6
7
# File 'app/components/essence/clipboard_copy_component.rb', line 5

def input_value
  @input_value
end

Returns the value of attribute link_text.



5
6
7
# File 'app/components/essence/clipboard_copy_component.rb', line 5

def link_text
  @link_text
end