Class: KirguduBase::DynamicPages::EntryProperty
- Inherits:
-
Property
- Object
- Property
- KirguduBase::DynamicPages::EntryProperty
- Defined in:
- app/models/kirgudu_base/dynamic_pages/entry_property.rb
Instance Attribute Summary collapse
-
#inplace_edit ⇒ Object
Returns the value of attribute inplace_edit.
-
#output_control ⇒ Object
Returns the value of attribute output_control.
-
#target ⇒ Object
used when control is a :link.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ EntryProperty
constructor
A new instance of EntryProperty.
- #is_control_with_target? ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ EntryProperty
Returns a new instance of EntryProperty.
13 14 15 16 17 18 19 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 13 def initialize( = {}) self.inplace_edit = nil self.output_control = nil self.target = nil super() end |
Instance Attribute Details
#inplace_edit ⇒ Object
Returns the value of attribute inplace_edit.
21 22 23 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 21 def inplace_edit @inplace_edit end |
#output_control ⇒ Object
Returns the value of attribute output_control.
22 23 24 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 22 def output_control @output_control end |
#target ⇒ Object
used when control is a :link
23 24 25 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 23 def target @target end |
Instance Method Details
#is_control_with_target? ⇒ Boolean
26 27 28 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 26 def is_control_with_target? ::KirguduBase::DynamicPages::Enums::ENTRY_CONTROLS_WITH_TARGET.include?(self.output_control) end |