Class: CMSBinding::ArticleAttachment
- Inherits:
-
Object
- Object
- CMSBinding::ArticleAttachment
- Defined in:
- lib/twm-cms-bindings.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#mime_type ⇒ Object
readonly
Returns the value of attribute mime_type.
Instance Method Summary collapse
-
#initialize(attachment_dom, source) ⇒ ArticleAttachment
constructor
A new instance of ArticleAttachment.
Constructor Details
#initialize(attachment_dom, source) ⇒ ArticleAttachment
Returns a new instance of ArticleAttachment.
116 117 118 119 120 121 122 |
# File 'lib/twm-cms-bindings.rb', line 116 def initialize(, source) @source = source @id = .attributes['id'].to_str @mime_type = .attributes['mimetype'].to_str @filename = .attributes['filename'].to_str end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
114 115 116 |
# File 'lib/twm-cms-bindings.rb', line 114 def filename @filename end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
114 115 116 |
# File 'lib/twm-cms-bindings.rb', line 114 def id @id end |
#mime_type ⇒ Object (readonly)
Returns the value of attribute mime_type.
114 115 116 |
# File 'lib/twm-cms-bindings.rb', line 114 def mime_type @mime_type end |