Class: OsuCcScraper::Section
- Inherits:
-
Object
- Object
- OsuCcScraper::Section
- Defined in:
- lib/osu-cc-scraper/section.rb
Instance Attribute Summary collapse
- #availability ⇒ String
- #capacity ⇒ String
- #department ⇒ String
- #instructor ⇒ String
- #name ⇒ String
- #number ⇒ String
- #section ⇒ String
- #status ⇒ String
- #term ⇒ String
- #type ⇒ String
Instance Method Summary collapse
Constructor Details
#initialize(args) ⇒ OsuCcScraper::Section
27 28 29 30 31 |
# File 'lib/osu-cc-scraper/section.rb', line 27 def initialize(args) args.each do |k,v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#availability ⇒ String
24 25 26 |
# File 'lib/osu-cc-scraper/section.rb', line 24 def availability @availability end |
#capacity ⇒ String
22 23 24 |
# File 'lib/osu-cc-scraper/section.rb', line 22 def capacity @capacity end |
#department ⇒ String
6 7 8 |
# File 'lib/osu-cc-scraper/section.rb', line 6 def department @department end |
#instructor ⇒ String
16 17 18 |
# File 'lib/osu-cc-scraper/section.rb', line 16 def instructor @instructor end |
#name ⇒ String
10 11 12 |
# File 'lib/osu-cc-scraper/section.rb', line 10 def name @name end |
#number ⇒ String
8 9 10 |
# File 'lib/osu-cc-scraper/section.rb', line 8 def number @number end |
#section ⇒ String
14 15 16 |
# File 'lib/osu-cc-scraper/section.rb', line 14 def section @section end |
#status ⇒ String
20 21 22 |
# File 'lib/osu-cc-scraper/section.rb', line 20 def status @status end |
#term ⇒ String
12 13 14 |
# File 'lib/osu-cc-scraper/section.rb', line 12 def term @term end |
#type ⇒ String
18 19 20 |
# File 'lib/osu-cc-scraper/section.rb', line 18 def type @type end |
Instance Method Details
#to_a ⇒ Array
34 35 36 |
# File 'lib/osu-cc-scraper/section.rb', line 34 def to_a [@department, @number, @name, @term, @section, @instructor, @type, @status, @capacity, @availability] end |