Class: InputComponentPreview::TempObj

Inherits:
Object
  • Object
show all
Defined in:
lib/alveole/previews/input_component_preview.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fieldname = 'Example value') ⇒ TempObj

Returns a new instance of TempObj.



5
6
7
# File 'lib/alveole/previews/input_component_preview.rb', line 5

def initialize(fieldname = 'Example value')
  @fieldname = fieldname
end

Instance Attribute Details

#fieldnameObject

Returns the value of attribute fieldname.



3
4
5
# File 'lib/alveole/previews/input_component_preview.rb', line 3

def fieldname
  @fieldname
end

Class Method Details

.human_attribute_name(_) ⇒ Object



9
10
11
# File 'lib/alveole/previews/input_component_preview.rb', line 9

def self.human_attribute_name(_)
  'label'
end