Class: TimeEase::Input

Inherits:
Struct
  • Object
show all
Defined in:
lib/timease.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



7
8
9
# File 'lib/timease.rb', line 7

def date
  @date
end

#donesObject

Returns the value of attribute dones

Returns:

  • (Object)

    the current value of dones



7
8
9
# File 'lib/timease.rb', line 7

def dones
  @dones
end

#end_timeObject

Returns the value of attribute end_time

Returns:

  • (Object)

    the current value of end_time



7
8
9
# File 'lib/timease.rb', line 7

def end_time
  @end_time
end

#start_timeObject

Returns the value of attribute start_time

Returns:

  • (Object)

    the current value of start_time



7
8
9
# File 'lib/timease.rb', line 7

def start_time
  @start_time
end

Instance Method Details

#valid?Boolean

Returns:

  • (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