Class: Delicious::Person

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

Overview

Link Class end #############

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Person

Returns a new instance of Person.



132
133
134
135
# File 'lib/delicious.rb', line 132

def initialize(name)
  @name = name
  @url = BASE_URL+'/'+name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



130
131
132
# File 'lib/delicious.rb', line 130

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



130
131
132
# File 'lib/delicious.rb', line 130

def url
  @url
end