Class: ProgrammeTableWidget::Programme

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoriesItemObject (readonly)

Returns the value of attribute categoriesItem.



9
10
11
# File 'lib/programmewin.rb', line 9

def categoriesItem
  @categoriesItem
end

#contentObject (readonly)

Returns the value of attribute content.



10
11
12
# File 'lib/programmewin.rb', line 10

def content
  @content
end

Returns the value of attribute link.



10
11
12
# File 'lib/programmewin.rb', line 10

def link
  @link
end

#titleItemObject (readonly)

Returns the value of attribute titleItem.



9
10
11
# File 'lib/programmewin.rb', line 9

def titleItem
  @titleItem
end

#updatedItemObject (readonly)

Returns the value of attribute updatedItem.



9
10
11
# File 'lib/programmewin.rb', line 9

def updatedItem
  @updatedItem
end

Instance Method Details

#categoriesObject



24
25
26
# File 'lib/programmewin.rb', line 24

def categories
    @categoriesItem.text
end

#titleObject



20
21
22
# File 'lib/programmewin.rb', line 20

def title
    @titleItem.text
end

#updatedObject



28
29
30
# File 'lib/programmewin.rb', line 28

def updated
    @updatedItem.text
end