Class: Pppt::PresentationPages

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pages) ⇒ PresentationPages

Returns a new instance of PresentationPages.



3
4
5
6
7
8
# File 'lib/pppt/presentation_pages.rb', line 3

def initialize(pages)
  @data = pages
  i = 0
  pages.each { |x| x['page'] = i += 1 unless x['action'] }
  @size = i
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



2
3
4
# File 'lib/pppt/presentation_pages.rb', line 2

def data
  @data
end

#sizeObject (readonly)

Returns the value of attribute size.



2
3
4
# File 'lib/pppt/presentation_pages.rb', line 2

def size
  @size
end