Class: Dorsale::Flyboy::Task::Copy
- Defined in:
- app/services/dorsale/flyboy/task/copy.rb
Instance Attribute Summary collapse
-
#copy ⇒ Object
Returns the value of attribute copy.
-
#task ⇒ Object
Returns the value of attribute task.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(task) ⇒ Copy
constructor
A new instance of Copy.
Methods inherited from Service
Constructor Details
#initialize(task) ⇒ Copy
Returns a new instance of Copy.
4 5 6 |
# File 'app/services/dorsale/flyboy/task/copy.rb', line 4 def initialize(task) @task = task end |
Instance Attribute Details
#copy ⇒ Object
Returns the value of attribute copy.
2 3 4 |
# File 'app/services/dorsale/flyboy/task/copy.rb', line 2 def copy @copy end |
#task ⇒ Object
Returns the value of attribute task.
2 3 4 |
# File 'app/services/dorsale/flyboy/task/copy.rb', line 2 def task @task end |
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'app/services/dorsale/flyboy/task/copy.rb', line 8 def call @copy = @task.dup @copy.reminder_date = nil @copy.reminder_type = nil @copy.term = nil @copy.done = nil @copy.progress = nil @copy.assign_default_values @copy end |