Class: KirguduBase::DynamicPages::EventActionConstraint
- Defined in:
- app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#values ⇒ Object
Returns the value of attribute values.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ EventActionConstraint
constructor
A new instance of EventActionConstraint.
- #to_external_hash(options = {}) ⇒ Object
Methods inherited from Element
#as_json, #fix_parent_entry, #kontroller_klass
Methods included from Models::MergeableElements::ClassMethods
#get_mergeable_attributes, #mergeable_attributes
Methods included from Models::FixableElements::ClassMethods
#fixable_attributes, #get_kb_fixable_attributes
Methods included from Models::FixableElements::InstanceMethods
Methods included from Models::MergeableElements::InstanceMethods
Constructor Details
#initialize(options = {}) ⇒ EventActionConstraint
Returns a new instance of EventActionConstraint.
12 13 14 15 16 17 |
# File 'app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb', line 12 def initialize( = {}) self.name = nil self.values = [] super() end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
19 20 21 |
# File 'app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb', line 19 def name @name end |
#values ⇒ Object
Returns the value of attribute values.
20 21 22 |
# File 'app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb', line 20 def values @values end |
Instance Method Details
#to_external_hash(options = {}) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb', line 22 def to_external_hash( = {}) ||= {} .merge!({ name: self.name, values: self.values }) super() end |