Class: Cadenya::Types::Schedule_Interval
- Inherits:
-
Object
- Object
- Cadenya::Types::Schedule_Interval
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#every ⇒ Object
readonly
Returns the value of attribute every.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(every: nil, offset: nil) ⇒ Schedule_Interval
constructor
A new instance of Schedule_Interval.
- #to_h ⇒ Object
Constructor Details
#initialize(every: nil, offset: nil) ⇒ Schedule_Interval
Returns a new instance of Schedule_Interval.
4978 4979 4980 4981 |
# File 'lib/cadenya/types.rb', line 4978 def initialize(every: nil, offset: nil) @every = every @offset = offset end |
Instance Attribute Details
#every ⇒ Object (readonly)
Returns the value of attribute every.
4976 4977 4978 |
# File 'lib/cadenya/types.rb', line 4976 def every @every end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
4976 4977 4978 |
# File 'lib/cadenya/types.rb', line 4976 def offset @offset end |
Class Method Details
.from_json(data) ⇒ Object
4983 4984 4985 4986 4987 4988 |
# File 'lib/cadenya/types.rb', line 4983 def self.from_json(data) new( every: data["every"], offset: data["offset"], ) end |