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.
12 13 14 15 16 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 12 def initialize(filename) super @filename = filename @properties = PicasaIni.open(filename) end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
8 9 10 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 8 def filename @filename end |
Instance Method Details
#[](tag) ⇒ Object
Returns the value of a tag.
19 20 21 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 19 def [] tag @properties[tag] end |
#[]=(tag, val) ⇒ Object
Set the value of a tag.
24 25 26 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 24 def []=(tag, val) @properties[tag] = val end |
#type ⇒ Object
28 29 30 |
# File 'lib/flickrup/filetype/tagged_video.rb', line 28 def type TYPE end |