Class: KirguduBase::DynamicPages::EventActionConstraint
- Inherits:
-
Element
- Object
- Element
- 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.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ EventActionConstraint
constructor
A new instance of EventActionConstraint.
- #to_external_hash(options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ EventActionConstraint
Returns a new instance of EventActionConstraint.
11 12 13 14 15 16 |
# File 'app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb', line 11 def initialize( = {}) self.name = nil self.values = [] super() end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
18 19 20 |
# File 'app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb', line 18 def name @name end |
#values ⇒ Object
Returns the value of attribute values.
19 20 21 |
# File 'app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb', line 19 def values @values end |
Instance Method Details
#to_external_hash(options = {}) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb', line 21 def to_external_hash( = {}) ||= {} .merge!({ name: self.name, values: self.values }) super() end |