Class: Redtube::Tag

Inherits:
Base
  • Object
show all
Defined in:
lib/redtube/tag.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

elements_by_query, find_by_query, get, name

Constructor Details

#initialize(name) ⇒ Tag

Returns a new instance of Tag.



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

def initialize(name)
  @name = name.content
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/redtube/tag.rb', line 3

def name
  @name
end

Class Method Details

.allObject



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

def self.all
  find_by_query "getTagList"
end