Class: Powerpoint::Slide::DashboardUser

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/powerpoint/slide/dashboard_user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#copy_media, #merge_variables, #pixle_to_pt, #read_template, #render_view, #require_arguments

Constructor Details

#initialize(options = {}) ⇒ DashboardUser

Returns a new instance of DashboardUser.



13
14
15
16
17
18
# File 'lib/powerpoint/slide/dashboard_user.rb', line 13

def initialize(options={})
  require_arguments [:title, :subtitle,:page_number,:logo, :images], options
  options.each {|k, v| instance_variable_set("@#{k}", v)}
  @images = images
  @logo_name = File.basename()
end

Instance Attribute Details

#imagesObject (readonly)

Returns the value of attribute images.



11
12
13
# File 'lib/powerpoint/slide/dashboard_user.rb', line 11

def images
  @images
end

#logoObject (readonly)

Returns the value of attribute logo.



11
12
13
# File 'lib/powerpoint/slide/dashboard_user.rb', line 11

def 
  @logo
end

#page_numberObject (readonly)

Returns the value of attribute page_number.



11
12
13
# File 'lib/powerpoint/slide/dashboard_user.rb', line 11

def page_number
  @page_number
end

#subtitleObject (readonly)

Returns the value of attribute subtitle.



11
12
13
# File 'lib/powerpoint/slide/dashboard_user.rb', line 11

def subtitle
  @subtitle
end

#titleObject (readonly)

Returns the value of attribute title.



11
12
13
# File 'lib/powerpoint/slide/dashboard_user.rb', line 11

def title
  @title
end

Instance Method Details

#save(extract_path, index) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/powerpoint/slide/dashboard_user.rb', line 20

def save(extract_path, index)
  @images.each do |image|
    copy_media(extract_path, image[1])
  end
  copy_media(extract_path, )
  save_rel_xml(extract_path, index)
  save_slide_xml(extract_path, index)
end