Class: PowerPointer::ContentTypes::Default
- Inherits:
-
Object
- Object
- PowerPointer::ContentTypes::Default
- Defined in:
- lib/powerpointer/content_types/default.rb
Instance Method Summary collapse
- #getContentType ⇒ Object
- #getExtension ⇒ Object
-
#initialize(extension, contentType) ⇒ Default
constructor
A new instance of Default.
- #to_xml ⇒ Object
Constructor Details
#initialize(extension, contentType) ⇒ Default
Returns a new instance of Default.
4 5 6 7 |
# File 'lib/powerpointer/content_types/default.rb', line 4 def initialize(extension, contentType) @extension = extension @contentType = contentType end |
Instance Method Details
#getContentType ⇒ Object
13 14 15 |
# File 'lib/powerpointer/content_types/default.rb', line 13 def getContentType @contentType end |
#getExtension ⇒ Object
9 10 11 |
# File 'lib/powerpointer/content_types/default.rb', line 9 def getExtension @extension end |
#to_xml ⇒ Object
17 18 19 |
# File 'lib/powerpointer/content_types/default.rb', line 17 def to_xml "<Default Extension=\"#{@extension}\" ContentType=\"#{@contentType}\" />" end |