Class: SOF::Cycles::VolumeOnly
Constant Summary
Constants inherited
from SOF::Cycle
SOF::Cycle::VERSION
Instance Attribute Summary
Attributes inherited from SOF::Cycle
#parser
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from SOF::Cycle
#==, #as_json, class_for_kind, class_for_notation_id, #considered_dates, cycle_handlers, dump, #expiration_of, #extend_period, #final_date, for, #from_data, #humanized_span, inherited, #initialize, #kind_inquiry, #last_completed, legend, load, #notation, notation, #range, #satisfied_by?, #to_h, #validate_period, volume_only?, #volume_to_delay_expiration
Constructor Details
This class inherits a constructor from SOF::Cycle
Class Method Details
.handles?(sym) ⇒ Boolean
12
|
# File 'lib/sof/cycles/volume_only.rb', line 12
def handles?(sym) = sym.nil? || sym.to_s == "volume_only"
|
.recurring? ⇒ Boolean
22
|
# File 'lib/sof/cycles/volume_only.rb', line 22
def self.recurring? = false
|
.validate_period(period) ⇒ Object
14
15
16
17
18
19
|
# File 'lib/sof/cycles/volume_only.rb', line 14
def validate_period(period)
raise Cycle::InvalidPeriod, " Invalid period value of '\#{period}' provided. Valid periods are:\n \#{valid_periods.join(\", \")}\n ERR\nend\n".squish unless period.nil?
|
Instance Method Details
#cover? ⇒ Boolean
28
|
# File 'lib/sof/cycles/volume_only.rb', line 28
def cover?(...) = true
|
#covered_dates(dates) ⇒ Object
26
|
# File 'lib/sof/cycles/volume_only.rb', line 26
def covered_dates(dates, ...) = dates
|
#to_s ⇒ Object
24
|
# File 'lib/sof/cycles/volume_only.rb', line 24
def to_s = "#{volume}x total"
|