Class: Agqr::Program

Inherits:
Object
  • Object
show all
Defined in:
lib/agqr/program.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(program) ⇒ Program

Returns a new instance of Program.



6
7
8
9
10
# File 'lib/agqr/program.rb', line 6

def initialize(program)
  @title = program["title"]
  @schedule = program["schedule"]
  @length = program["length"]
end

Instance Attribute Details

#lengthObject (readonly)

Returns the value of attribute length.



4
5
6
# File 'lib/agqr/program.rb', line 4

def length
  @length
end

#scheduleObject (readonly)

Returns the value of attribute schedule.



4
5
6
# File 'lib/agqr/program.rb', line 4

def schedule
  @schedule
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/agqr/program.rb', line 4

def title
  @title
end