Class: Models::Templates::Attribute

Inherits:
Base
  • Object
show all
Defined in:
app/components/databasium/models/templates/attribute.rb

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, params: nil) ⇒ Attribute

Returns a new instance of Attribute.



4
5
6
7
# File 'app/components/databasium/models/templates/attribute.rb', line 4

def initialize(name: nil, params: nil)
  @name = name
  @params = params
end

Instance Method Details

#view_templateObject



9
10
11
# File 'app/components/databasium/models/templates/attribute.rb', line 9

def view_template
  div(data: { controller: "attribute" }) { render_attribute_fields }
end