Class: Dina::ScheduledAction
- Inherits:
-
Object
- Object
- Dina::ScheduledAction
- Defined in:
- lib/dina/components/scheduled_action.rb
Instance Attribute Summary collapse
-
#actionStatus ⇒ Object
Returns the value of attribute actionStatus.
-
#actionType ⇒ Object
Returns the value of attribute actionType.
-
#assignedTo ⇒ Object
Returns the value of attribute assignedTo.
-
#date ⇒ Object
Returns the value of attribute date.
-
#remarks ⇒ Object
Returns the value of attribute remarks.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ScheduledAction
constructor
A new instance of ScheduledAction.
- #to_hash ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ ScheduledAction
Returns a new instance of ScheduledAction.
9 10 11 12 13 14 |
# File 'lib/dina/components/scheduled_action.rb', line 9 def initialize(params = {}) params.each do |key, value| setter = "#{key}=" send(setter, value) if respond_to?(setter.to_sym, false) end end |
Instance Attribute Details
#actionStatus ⇒ Object
Returns the value of attribute actionStatus.
5 6 7 |
# File 'lib/dina/components/scheduled_action.rb', line 5 def actionStatus @actionStatus end |
#actionType ⇒ Object
Returns the value of attribute actionType.
3 4 5 |
# File 'lib/dina/components/scheduled_action.rb', line 3 def actionType @actionType end |
#assignedTo ⇒ Object
Returns the value of attribute assignedTo.
7 8 9 |
# File 'lib/dina/components/scheduled_action.rb', line 7 def assignedTo @assignedTo end |
#date ⇒ Object
Returns the value of attribute date.
4 5 6 |
# File 'lib/dina/components/scheduled_action.rb', line 4 def date @date end |
#remarks ⇒ Object
Returns the value of attribute remarks.
6 7 8 |
# File 'lib/dina/components/scheduled_action.rb', line 6 def remarks @remarks end |
Instance Method Details
#to_hash ⇒ Object
16 17 18 19 20 |
# File 'lib/dina/components/scheduled_action.rb', line 16 def to_hash hash = {} instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) } hash.deep_symbolize_keys end |