Class: Cadenya::Types::Schedule_Range
- Inherits:
-
Object
- Object
- Cadenya::Types::Schedule_Range
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#end_ ⇒ Object
readonly
Returns the value of attribute end_.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(start: nil, end_: nil, step: nil) ⇒ Schedule_Range
constructor
A new instance of Schedule_Range.
- #to_h ⇒ Object
Constructor Details
#initialize(start: nil, end_: nil, step: nil) ⇒ Schedule_Range
Returns a new instance of Schedule_Range.
5001 5002 5003 5004 5005 |
# File 'lib/cadenya/types.rb', line 5001 def initialize(start: nil, end_: nil, step: nil) @start = start @end_ = end_ @step = step end |
Instance Attribute Details
#end_ ⇒ Object (readonly)
Returns the value of attribute end_.
4999 5000 5001 |
# File 'lib/cadenya/types.rb', line 4999 def end_ @end_ end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
4999 5000 5001 |
# File 'lib/cadenya/types.rb', line 4999 def start @start end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
4999 5000 5001 |
# File 'lib/cadenya/types.rb', line 4999 def step @step end |
Class Method Details
.from_json(data) ⇒ Object
5007 5008 5009 5010 5011 5012 5013 |
# File 'lib/cadenya/types.rb', line 5007 def self.from_json(data) new( start: data["start"], end_: data["end"], step: data["step"], ) end |