Class: Spydecz::Website
- Inherits:
-
Object
- Object
- Spydecz::Website
- Defined in:
- lib/spydecz/website.rb
Instance Method Summary collapse
- #all ⇒ Object
- #author ⇒ Object
- #canonical ⇒ Object
- #desc ⇒ Object
-
#initialize(page_url) ⇒ Website
constructor
A new instance of Website.
- #keywords ⇒ Object
- #status ⇒ Object
- #title ⇒ Object
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
#all ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/spydecz/website.rb', line 32 def all com_page = [] com_page << com_page << canonical com_page << desc com_page << keywords com_page << title com_page end |
#author ⇒ Object
8 9 10 |
# File 'lib/spydecz/website.rb', line 8 def "Raymond Cudjoe" end |
#canonical ⇒ Object
12 13 14 |
# File 'lib/spydecz/website.rb', line 12 def canonical @page_url end |
#desc ⇒ Object
16 17 18 |
# File 'lib/spydecz/website.rb', line 16 def desc "Become better at building products and selling them." end |
#keywords ⇒ Object
20 21 22 |
# File 'lib/spydecz/website.rb', line 20 def keywords ["ruby", "ruby on rails", "command-line apps", "ruby gems"] end |
#status ⇒ Object
24 25 26 |
# File 'lib/spydecz/website.rb', line 24 def status "200 OK" end |
#title ⇒ Object
28 29 30 |
# File 'lib/spydecz/website.rb', line 28 def title "Excel with Code" end |