Sha256: a664f1bc0d10c8f993cbbdcf75b5008758037e6fd6ab340eb4a851db2381e056

Contents?: true

Size: 289 Bytes

Versions: 6

Compression:

Stored size: 289 Bytes

Contents

require 'schedule_attributes'

class ScheduledModel
  include ScheduleAttributes::Model
  attr_accessor :schedule

  schedule_field = :schedule

  def schedule
    @schedule or ScheduleAttributes.default_schedule
  end

  def schedule=(new_schedule)
    @schedule = new_schedule
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dgp-schedule_attributes-0.5.3 spec/support/scheduled_model.rb
dgp-schedule_attributes-0.5.2 spec/support/scheduled_model.rb
dgp-schedule_attributes-0.5.1 spec/support/scheduled_model.rb
dgp-schedule_attributes-0.5.0 spec/support/scheduled_model.rb
dgp-schedule_attributes-0.4.0 spec/support/scheduled_model.rb
schedule_attributes-0.3.0 spec/support/scheduled_model.rb