Class: Calendar::CalendarResults::CalendarResultItem

Inherits:
Object
  • Object
show all
Defined in:
app/models/calendar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, description, location, start_time, end_time) ⇒ CalendarResultItem

Returns a new instance of CalendarResultItem.



11
12
13
14
15
16
17
# File 'app/models/calendar.rb', line 11

def initialize(name, description, location, start_time, end_time)
  @name=name
  @description = description
  @location = location
  @start_time = start_time
  @end_time = end_time
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



9
10
11
# File 'app/models/calendar.rb', line 9

def description
  @description
end

#end_timeObject

Returns the value of attribute end_time.



9
10
11
# File 'app/models/calendar.rb', line 9

def end_time
  @end_time
end

#locationObject

Returns the value of attribute location.



9
10
11
# File 'app/models/calendar.rb', line 9

def location
  @location
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'app/models/calendar.rb', line 9

def name
  @name
end

#start_timeObject

Returns the value of attribute start_time.



9
10
11
# File 'app/models/calendar.rb', line 9

def start_time
  @start_time
end