Class: Spydecz::Website

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

Instance Method Summary collapse

Constructor Details

#initialize(page_url) ⇒ Website

Returns a new instance of Website.



4
5
6
# File 'lib/spydecz/website.rb', line 4

def initialize(page_url)
  @page_url = page_url
end

Instance Method Details

#allObject



32
33
34
35
36
37
38
39
40
# File 'lib/spydecz/website.rb', line 32

def all
  com_page = []
  com_page << author
  com_page << canonical
  com_page << desc
  com_page << keywords
  com_page << title
  com_page
end

#authorObject



8
9
10
# File 'lib/spydecz/website.rb', line 8

def author
  "Raymond Cudjoe"
end

#canonicalObject



12
13
14
# File 'lib/spydecz/website.rb', line 12

def canonical
  @page_url
end

#descObject



16
17
18
# File 'lib/spydecz/website.rb', line 16

def desc
  "Become better at building products and selling them."
end

#keywordsObject



20
21
22
# File 'lib/spydecz/website.rb', line 20

def keywords
  ["ruby", "ruby on rails", "command-line apps", "ruby gems"]
end

#statusObject



24
25
26
# File 'lib/spydecz/website.rb', line 24

def status
  "200 OK"
end

#titleObject



28
29
30
# File 'lib/spydecz/website.rb', line 28

def title
  "Excel with Code"
end