Class: Redtube::Star
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(star) ⇒ Star
constructor
A new instance of Star.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/redtube/star.rb', line 3 def name @name end |
Class Method Details
.all ⇒ Object
5 6 7 |
# File 'lib/redtube/star.rb', line 5 def self.all find_by_query "getStarList" end |