Class: Delicious::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/delicious.rb

Overview

Person Class end ############

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



140
141
142
# File 'lib/delicious.rb', line 140

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



140
141
142
# File 'lib/delicious.rb', line 140

def url
  @url
end