Class: TerminalCal::Event
- Inherits:
-
Object
- Object
- TerminalCal::Event
- Defined in:
- lib/terminal_cal/event.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(options) ⇒ Event
constructor
A new instance of Event.
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() @date = [:date] @start_time = [:start_time] @end_time = [:end_time] @summary = [:summary] end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
3 4 5 |
# File 'lib/terminal_cal/event.rb', line 3 def date @date end |
#end_time ⇒ Object (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_time ⇒ Object (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 |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
3 4 5 |
# File 'lib/terminal_cal/event.rb', line 3 def summary @summary end |