Class: Resume::Sample

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

Overview

A sample of work, avaiable via the internet

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



68
69
70
# File 'lib/resume.rb', line 68

def name
  @name
end

#urlObject

Returns the value of attribute url.



69
70
71
# File 'lib/resume.rb', line 69

def url
  @url
end

Class Method Details

.scaffoldObject



71
72
73
74
75
76
# File 'lib/resume.rb', line 71

def Sample.scaffold
    sample = Sample.new
    sample.name = "Name of this work sample"
    sample.url = "http://www.google.com"
    sample
end

Instance Method Details

#<=>(other_sample) ⇒ Object



78
79
80
81
# File 'lib/resume.rb', line 78

def <=>(other_sample)
    return 1 if !other_sample 
    @name <=> other_sample.name
end