Sha256: fe305d8a6b36092ada4f6ed366ce27184980341cc8e74a90191d02c6eef8a7c0
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
module ScheduledValue class TimespanWithValue < Timespan attr_accessor :value def initialize(start: nil, finish: nil, value: nil) super(start: start, finish: finish) self.value = value end def attributes super.merge(value: value) end def to_hash(*) attributes end def to_s(format = nil, timezone = nil) "#{value} #{super}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scheduled_value-1.4.0 | lib/scheduled_value/timespan_with_value.rb |
scheduled_value-1.3.0 | lib/scheduled_value/timespan_with_value.rb |