Class: ProgrammeTableWidget::Programme
- Inherits:
-
Object
- Object
- ProgrammeTableWidget::Programme
- Defined in:
- lib/programmewin.rb
Instance Attribute Summary collapse
-
#categoriesItem ⇒ Object
readonly
Returns the value of attribute categoriesItem.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#titleItem ⇒ Object
readonly
Returns the value of attribute titleItem.
-
#updatedItem ⇒ Object
readonly
Returns the value of attribute updatedItem.
Instance Method Summary collapse
- #categories ⇒ Object
-
#initialize(title, categories, updated, content, link) ⇒ Programme
constructor
A new instance of Programme.
- #title ⇒ Object
- #updated ⇒ Object
Constructor Details
#initialize(title, categories, updated, content, link) ⇒ Programme
Returns a new instance of Programme.
12 13 14 15 16 17 18 |
# File 'lib/programmewin.rb', line 12 def initialize(title, categories, updated, content, link) @titleItem = Item.new(title) @categoriesItem = Item.new(categories) @updatedItem = Item.new(updated) @content = content @link = link end |
Instance Attribute Details
#categoriesItem ⇒ Object (readonly)
Returns the value of attribute categoriesItem.
9 10 11 |
# File 'lib/programmewin.rb', line 9 def categoriesItem @categoriesItem end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
10 11 12 |
# File 'lib/programmewin.rb', line 10 def content @content end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
10 11 12 |
# File 'lib/programmewin.rb', line 10 def link @link end |
#titleItem ⇒ Object (readonly)
Returns the value of attribute titleItem.
9 10 11 |
# File 'lib/programmewin.rb', line 9 def titleItem @titleItem end |
#updatedItem ⇒ Object (readonly)
Returns the value of attribute updatedItem.
9 10 11 |
# File 'lib/programmewin.rb', line 9 def updatedItem @updatedItem end |
Instance Method Details
#categories ⇒ Object
24 25 26 |
# File 'lib/programmewin.rb', line 24 def categories @categoriesItem.text end |
#title ⇒ Object
20 21 22 |
# File 'lib/programmewin.rb', line 20 def title @titleItem.text end |
#updated ⇒ Object
28 29 30 |
# File 'lib/programmewin.rb', line 28 def updated @updatedItem.text end |