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.



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

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

#typeObject



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

def type
  TYPE
end