Class: TaggedVideo

Inherits:
TaggedFile show all
Includes:
Logging
Defined in:
lib/flickrup/filetype/tagged_video.rb

Constant Summary collapse

TYPE =
'video'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

logger, #logger, pre_init

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

#filenameObject (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

#typeObject



27
28
29
# File 'lib/flickrup/filetype/tagged_video.rb', line 27

def type
  TYPE
end