Class: TimeEase::Input
- Inherits:
-
Struct
- Object
- Struct
- TimeEase::Input
- Defined in:
- lib/timease.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#dones ⇒ Object
Returns the value of attribute dones.
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
7 8 9 |
# File 'lib/timease.rb', line 7 def date @date end |
#dones ⇒ Object
Returns the value of attribute dones
7 8 9 |
# File 'lib/timease.rb', line 7 def dones @dones end |
#end_time ⇒ Object
Returns the value of attribute end_time
7 8 9 |
# File 'lib/timease.rb', line 7 def end_time @end_time end |
#start_time ⇒ Object
Returns the value of attribute start_time
7 8 9 |
# File 'lib/timease.rb', line 7 def start_time @start_time end |
Instance Method Details
#valid? ⇒ Boolean
8 9 10 |
# File 'lib/timease.rb', line 8 def valid? [start_time, end_time, date, dones].none?{ |a| a.nil? || a.empty? } end |