Class: Martlet::CourseMeeting
- Inherits:
-
Object
- Object
- Martlet::CourseMeeting
- Defined in:
- lib/martlet/course_meeting.rb
Instance Attribute Summary collapse
-
#days ⇒ Object
readonly
Returns the value of attribute days.
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
Instance Method Summary collapse
-
#initialize(args) ⇒ CourseMeeting
constructor
A new instance of CourseMeeting.
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
#days ⇒ Object (readonly)
Returns the value of attribute days.
3 4 5 |
# File 'lib/martlet/course_meeting.rb', line 3 def days @days end |
#end_date ⇒ Object (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_time ⇒ Object (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 |
#location ⇒ Object (readonly)
Returns the value of attribute location.
3 4 5 |
# File 'lib/martlet/course_meeting.rb', line 3 def location @location end |
#start_date ⇒ Object (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_time ⇒ Object (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 |