Sha256: f60c371058cfc6f689fa1a22263cd9056935ba85c95e6b8dffd4d06b68fe1f58
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
class Section < Forgery attr_reader :name, :sis_id, :course_id, :course_sis_id, :start_at, :end_at attr_writer :course, :course_sis_id def initialize(name, sis_id, course, start_at, end_at) @name = name @sis_id = sis_id @course_id = course @start_at = start_at @end_at = end_at end def self.random(course=1) d = Forgery('date').date Section.new( "#{Forgery('address').country} #{Forgery('basic').color}", (21000+rand(1000000)), course, d, d+90.days ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bobross-0.1.6 | lib/models/section.rb |