Class: Powerpoint::Slide::Concept
- Inherits:
-
Object
- Object
- Powerpoint::Slide::Concept
- Includes:
- Util
- Defined in:
- lib/powerpoint/slide/concept.rb
Instance Attribute Summary collapse
-
#image_information ⇒ Object
readonly
Returns the value of attribute image_information.
-
#images ⇒ Object
readonly
Returns the value of attribute images.
-
#legend ⇒ Object
readonly
Returns the value of attribute legend.
-
#logo ⇒ Object
readonly
Returns the value of attribute logo.
-
#page_number ⇒ Object
readonly
Returns the value of attribute page_number.
-
#subtitle ⇒ Object
readonly
Returns the value of attribute subtitle.
-
#task_icon ⇒ Object
readonly
Returns the value of attribute task_icon.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Concept
constructor
A new instance of Concept.
- #save(extract_path, index) ⇒ Object
Methods included from Util
#copy_media, #merge_variables, #pixle_to_pt, #read_template, #render_view, #require_arguments
Constructor Details
#initialize(options = {}) ⇒ Concept
Returns a new instance of Concept.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/powerpoint/slide/concept.rb', line 13 def initialize(={}) require_arguments [:title, :subtitle, :page_number, :logo, :task_icon, :image_information, :images, :legend], .each {|k, v| instance_variable_set("@#{k}", v)} @legend = legend @images = images @image_y_scale = image_information[1] @image_x_scale = image_information[0] @image_x_offset = image_information[2] @image_y_offset = image_information[3] end |
Instance Attribute Details
#image_information ⇒ Object (readonly)
Returns the value of attribute image_information.
11 12 13 |
# File 'lib/powerpoint/slide/concept.rb', line 11 def image_information @image_information end |
#images ⇒ Object (readonly)
Returns the value of attribute images.
11 12 13 |
# File 'lib/powerpoint/slide/concept.rb', line 11 def images @images end |
#legend ⇒ Object (readonly)
Returns the value of attribute legend.
11 12 13 |
# File 'lib/powerpoint/slide/concept.rb', line 11 def legend @legend end |
#logo ⇒ Object (readonly)
Returns the value of attribute logo.
11 12 13 |
# File 'lib/powerpoint/slide/concept.rb', line 11 def logo @logo end |
#page_number ⇒ Object (readonly)
Returns the value of attribute page_number.
11 12 13 |
# File 'lib/powerpoint/slide/concept.rb', line 11 def page_number @page_number end |
#subtitle ⇒ Object (readonly)
Returns the value of attribute subtitle.
11 12 13 |
# File 'lib/powerpoint/slide/concept.rb', line 11 def subtitle @subtitle end |
#task_icon ⇒ Object (readonly)
Returns the value of attribute task_icon.
11 12 13 |
# File 'lib/powerpoint/slide/concept.rb', line 11 def task_icon @task_icon end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
11 12 13 |
# File 'lib/powerpoint/slide/concept.rb', line 11 def title @title end |
Instance Method Details
#save(extract_path, index) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/powerpoint/slide/concept.rb', line 24 def save(extract_path, index) @images.each do |image| copy_media(extract_path, image) end copy_media(extract_path, logo) copy_media(extract_path, task_icon) save_rel_xml(extract_path, index) (extract_path, index) end |