Class: KirguduBase::DynamicPages::EntryProperty

Inherits:
Property
  • Object
show all
Defined in:
app/models/kirgudu_base/dynamic_pages/entry_property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  self.inplace_edit = nil
  self.output_control = nil
  self.target = nil

  super(options)
end

Instance Attribute Details

#inplace_editObject

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_controlObject

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

#targetObject

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

Returns:

  • (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