Class: TerminalCal::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/terminal_cal/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Event

Returns a new instance of Event.



5
6
7
8
9
10
# File 'lib/terminal_cal/event.rb', line 5

def initialize(options)
  @date       = options[:date]
  @start_time = options[:start_time]
  @end_time   = options[:end_time]
  @summary    = options[:summary]
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



3
4
5
# File 'lib/terminal_cal/event.rb', line 3

def date
  @date
end

#end_timeObject (readonly)

Returns the value of attribute end_time.



3
4
5
# File 'lib/terminal_cal/event.rb', line 3

def end_time
  @end_time
end

#start_timeObject (readonly)

Returns the value of attribute start_time.



3
4
5
# File 'lib/terminal_cal/event.rb', line 3

def start_time
  @start_time
end

#summaryObject (readonly)

Returns the value of attribute summary.



3
4
5
# File 'lib/terminal_cal/event.rb', line 3

def summary
  @summary
end