Class: Martlet::CourseMeeting

Inherits:
Object
  • Object
show all
Defined in:
lib/martlet/course_meeting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CourseMeeting

Returns a new instance of CourseMeeting.



5
6
7
8
9
10
11
12
# File 'lib/martlet/course_meeting.rb', line 5

def initialize(args)
  @start_time = args[:start_time]
  @end_time   = args[:end_time]
  @start_date = args[:start_date]
  @end_date   = args[:end_date]
  @days       = args[:days]
  @location   = args[:location]
end

Instance Attribute Details

#daysObject (readonly)

Returns the value of attribute days.



3
4
5
# File 'lib/martlet/course_meeting.rb', line 3

def days
  @days
end

#end_dateObject (readonly)

Returns the value of attribute end_date.



3
4
5
# File 'lib/martlet/course_meeting.rb', line 3

def end_date
  @end_date
end

#end_timeObject (readonly)

Returns the value of attribute end_time.



3
4
5
# File 'lib/martlet/course_meeting.rb', line 3

def end_time
  @end_time
end

#locationObject (readonly)

Returns the value of attribute location.



3
4
5
# File 'lib/martlet/course_meeting.rb', line 3

def location
  @location
end

#start_dateObject (readonly)

Returns the value of attribute start_date.



3
4
5
# File 'lib/martlet/course_meeting.rb', line 3

def start_date
  @start_date
end

#start_timeObject (readonly)

Returns the value of attribute start_time.



3
4
5
# File 'lib/martlet/course_meeting.rb', line 3

def start_time
  @start_time
end