Class: Vodpod::Tag

Inherits:
Record show all
Defined in:
lib/vodpod/tag.rb

Overview

A Tag, attached to a video. There isn’t a way yet to go from tags to videos that I’m aware of, but it might happen in the future.

Instance Attribute Summary

Attributes inherited from Record

#store

Instance Method Summary collapse

Methods inherited from Record

#initialize, load, #method_missing

Constructor Details

This class inherits a constructor from Vodpod::Record

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Vodpod::Record

Instance Method Details

#inspectObject



5
6
7
# File 'lib/vodpod/tag.rb', line 5

def inspect
  "<Vodpod::Tag #{@store['_value']} (#{count})>"
end

#to_sObject



9
10
11
# File 'lib/vodpod/tag.rb', line 9

def to_s
  @store['_value']
end