Class: Ruboty::Handlers::GoogleCalendar::ItemView
- Inherits:
-
Object
- Object
- Ruboty::Handlers::GoogleCalendar::ItemView
- Defined in:
- lib/ruboty/handlers/google_calendar.rb
Instance Method Summary collapse
-
#initialize(item) ⇒ ItemView
constructor
A new instance of ItemView.
- #to_s ⇒ Object
Constructor Details
#initialize(item) ⇒ ItemView
Returns a new instance of ItemView.
117 118 119 |
# File 'lib/ruboty/handlers/google_calendar.rb', line 117 def initialize(item) @item = item end |
Instance Method Details
#to_s ⇒ Object
121 122 123 |
# File 'lib/ruboty/handlers/google_calendar.rb', line 121 def to_s "#{started_at} - #{finished_at} #{summary}" end |