Class: Katalyst::Tables::Suggestions::ConstantValue
- Defined in:
- app/models/katalyst/tables/suggestions/constant_value.rb
Instance Method Summary collapse
-
#initialize(name:, type:, model:, column:, value:) ⇒ ConstantValue
constructor
A new instance of ConstantValue.
- #type ⇒ Object
- #value ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(name:, type:, model:, column:, value:) ⇒ ConstantValue
Returns a new instance of ConstantValue.
9 10 11 12 13 14 15 16 |
# File 'app/models/katalyst/tables/suggestions/constant_value.rb', line 9 def initialize(name:, type:, model:, column:, value:) super(value) @attribute_type = type @model = model @column = column @name = name end |
Instance Method Details
#type ⇒ Object
18 19 20 |
# File 'app/models/katalyst/tables/suggestions/constant_value.rb', line 18 def type :constant_value end |
#value ⇒ Object
22 23 24 |
# File 'app/models/katalyst/tables/suggestions/constant_value.rb', line 22 def value to_param(@value) end |