Class: TaggedVideo
- Inherits:
-
TaggedFile
- Object
- TaggedFile
- TaggedVideo
- Includes:
- Logging
- Defined in:
- lib/flickrup/filetype/tagged_video.rb
Constant Summary collapse
- TYPE =
'video'
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#[](tag) ⇒ Object
Returns the value of a tag.
-
#[]=(tag, val) ⇒ Object
Set the value of a tag.
-
#initialize(filename) ⇒ TaggedVideo
constructor
A new instance of TaggedVideo.
- #type ⇒ Object
Methods included from Logging
Methods inherited from TaggedFile
#archive, create, #date_created, #doUpload, #post_upload, #pre_upload, register_reader, #tags
Constructor Details
#initialize(filename) ⇒ TaggedVideo
Returns a new instance of TaggedVideo.
11 12 13 14 15 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 11 def initialize(filename) super @filename = filename @properties = PicasaIni.open(filename) end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
7 8 9 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 7 def filename @filename end |
Instance Method Details
#[](tag) ⇒ Object
Returns the value of a tag.
18 19 20 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 18 def [] tag @properties[tag] end |
#[]=(tag, val) ⇒ Object
Set the value of a tag.
23 24 25 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 23 def []=(tag, val) @properties[tag] = val end |
#type ⇒ Object
27 28 29 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 27 def type TYPE end |