Class: Powerpoint::Slide::ExtendedIntro
- Inherits:
-
Object
- Object
- Powerpoint::Slide::ExtendedIntro
- Includes:
- Util
- Defined in:
- lib/powerpoint/slide/extended_intro.rb
Instance Attribute Summary collapse
-
#coords ⇒ Object
readonly
Returns the value of attribute coords.
-
#image_name ⇒ Object
readonly
Returns the value of attribute image_name.
-
#image_path ⇒ Object
readonly
Returns the value of attribute image_path.
-
#image_path_2 ⇒ Object
readonly
Returns the value of attribute image_path_2.
-
#subtitle ⇒ Object
readonly
Returns the value of attribute subtitle.
-
#subtitle_2 ⇒ Object
readonly
Returns the value of attribute subtitle_2.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ExtendedIntro
constructor
A new instance of ExtendedIntro.
- #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 = {}) ⇒ ExtendedIntro
Returns a new instance of ExtendedIntro.
13 14 15 16 17 18 |
# File 'lib/powerpoint/slide/extended_intro.rb', line 13 def initialize(={}) require_arguments [:title, :subtitle, :image_path, :image_path_2, :subtitle_2], .each {|k, v| instance_variable_set("@#{k}", v)} @image_name = File.basename(@image_path) @image_name_2 = File.basename(@image_path_2) end |
Instance Attribute Details
#coords ⇒ Object (readonly)
Returns the value of attribute coords.
11 12 13 |
# File 'lib/powerpoint/slide/extended_intro.rb', line 11 def coords @coords end |
#image_name ⇒ Object (readonly)
Returns the value of attribute image_name.
11 12 13 |
# File 'lib/powerpoint/slide/extended_intro.rb', line 11 def image_name @image_name end |
#image_path ⇒ Object (readonly)
Returns the value of attribute image_path.
11 12 13 |
# File 'lib/powerpoint/slide/extended_intro.rb', line 11 def image_path @image_path end |
#image_path_2 ⇒ Object (readonly)
Returns the value of attribute image_path_2.
11 12 13 |
# File 'lib/powerpoint/slide/extended_intro.rb', line 11 def image_path_2 @image_path_2 end |
#subtitle ⇒ Object (readonly)
Returns the value of attribute subtitle.
11 12 13 |
# File 'lib/powerpoint/slide/extended_intro.rb', line 11 def subtitle @subtitle end |
#subtitle_2 ⇒ Object (readonly)
Returns the value of attribute subtitle_2.
11 12 13 |
# File 'lib/powerpoint/slide/extended_intro.rb', line 11 def subtitle_2 @subtitle_2 end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
11 12 13 |
# File 'lib/powerpoint/slide/extended_intro.rb', line 11 def title @title end |
Instance Method Details
#save(extract_path, index) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/powerpoint/slide/extended_intro.rb', line 20 def save(extract_path, index) copy_media(extract_path, @image_path) copy_media(extract_path, @image_path_2) save_rel_xml(extract_path, index) (extract_path, index) end |