Class: CourseScraper::Course
- Inherits:
-
Object
- Object
- CourseScraper::Course
- Defined in:
- lib/course_scraper/course.rb
Overview
Public: A vocational course.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ Course
constructor
Public: Initializes a new Course.
Constructor Details
#initialize(name, type) ⇒ Course
Public: Initializes a new Course.
name - the String name of the course type - the Symbol type of the course (either :high or :medium).
11 12 13 14 |
# File 'lib/course_scraper/course.rb', line 11 def initialize(name, type) @name = name @type = type end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/course_scraper/course.rb', line 5 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/course_scraper/course.rb', line 5 def type @type end |