Class: KirguduBase::DynamicPages::EventActionConstraint

Inherits:
Element
  • Object
show all
Defined in:
app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  self.name = nil
  self.values = []

  super(options)
end

Instance Attribute Details

#nameObject

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

#valuesObject

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(options = {})
  options ||= {}
  options.merge!({
                   name: self.name,
                   values: self.values
                 })
  super(options)
end