Class: Delicious::Tag
- Inherits:
-
Object
- Object
- Delicious::Tag
- Defined in:
- lib/delicious.rb
Overview
Person Class end ############
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name) ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize(name) ⇒ Tag
Returns a new instance of Tag.
142 143 144 145 |
# File 'lib/delicious.rb', line 142 def initialize(name) @name = name @url = POPULAR_URL +'/'+name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
140 141 142 |
# File 'lib/delicious.rb', line 140 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
140 141 142 |
# File 'lib/delicious.rb', line 140 def url @url end |