Class: Redtube::Star

Inherits:
Base
  • Object
show all
Defined in:
lib/redtube/star.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(star) ⇒ Star

Returns a new instance of Star.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Class Method Details

.allObject



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

def self.all
  find_by_query "getStarList"
end