Sha256: 6eea68d68519feffa44fbaec4ac265ce0bcdd6a61d433dcc2b478afaf0629e63

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 Bytes

Contents

class Dorsale::Flyboy::Task::Copy < ::Dorsale::Service
  attr_accessor :task, :copy

  def initialize(task)
    super()
    @task = task
  end

  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
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dorsale-4.0.0 app/services/dorsale/flyboy/task/copy.rb
dorsale-3.20.0 app/services/dorsale/flyboy/task/copy.rb
dorsale-3.19.1 app/services/dorsale/flyboy/task/copy.rb
dorsale-3.19.0 app/services/dorsale/flyboy/task/copy.rb
dorsale-3.18.0 app/services/dorsale/flyboy/task/copy.rb
dorsale-3.17.0 app/services/dorsale/flyboy/task/copy.rb
dorsale-3.16.0 app/services/dorsale/flyboy/task/copy.rb
dorsale-3.15.0 app/services/dorsale/flyboy/task/copy.rb
dorsale-3.14.11 app/services/dorsale/flyboy/task/copy.rb
dorsale-3.14.10 app/services/dorsale/flyboy/task/copy.rb