Class: Agqr::Program
- Inherits:
-
Object
- Object
- Agqr::Program
- Defined in:
- lib/agqr/program.rb
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#schedule ⇒ Object
readonly
Returns the value of attribute schedule.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(program) ⇒ Program
constructor
A new instance of Program.
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
#length ⇒ Object (readonly)
Returns the value of attribute length.
4 5 6 |
# File 'lib/agqr/program.rb', line 4 def length @length end |
#schedule ⇒ Object (readonly)
Returns the value of attribute schedule.
4 5 6 |
# File 'lib/agqr/program.rb', line 4 def schedule @schedule end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/agqr/program.rb', line 4 def title @title end |