Sha256: 50d268bbc98ce5b195e97c76fe85d0154a06bd3a98511d3599e75f6970848555

Contents?: true

Size: 161 Bytes

Versions: 6

Compression:

Stored size: 161 Bytes

Contents

class RollingMembershipType < MembershipType
  def starts_at
    DateTime.now
  end

  def ends_at
    DateTime.now + (self.duration.send(self.period))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.12 app/models/rolling_membership_type.rb
artfully_ose-1.2.0.pre.11 app/models/rolling_membership_type.rb
artfully_ose-1.2.0.pre.10 app/models/rolling_membership_type.rb
artfully_ose-1.2.0.pre.9 app/models/rolling_membership_type.rb
artfully_ose-1.2.0.pre.8 app/models/rolling_membership_type.rb
artfully_ose-1.2.0.pre.7 app/models/rolling_membership_type.rb