Module: UiComponents::CellAttributes
- Extended by:
- ActiveSupport::Concern
- Included in:
- Cell
- Defined in:
- lib/ui_components/cell_attributes.rb
Defined Under Namespace
Classes: MandatoryAttributeNotSet
Instance Method Summary
collapse
Instance Method Details
#attributes ⇒ Object
15
16
17
18
19
|
# File 'lib/ui_components/cell_attributes.rb', line 15
def attributes
self.class.attributes.keys.map do |k|
[k, public_send(k)]
end.to_h
end
|
#initialize(*args) ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/ui_components/cell_attributes.rb', line 7
def initialize(*args)
super
options.except(:controller).each do |k, v|
public_send(:"#{k}=", v) if respond_to?(:"#{k}=")
end
validate_mandatory_attributes
end
|