Class: CatClaw::V2EXCat
- Inherits:
-
Object
- Object
- CatClaw::V2EXCat
- Defined in:
- lib/cat_claw/cats/v2ex_cat.rb
Constant Summary collapse
- KEYWORD =
"远程"
Instance Attribute Summary collapse
-
#footprint ⇒ Object
Returns the value of attribute footprint.
Instance Method Summary collapse
-
#initialize ⇒ V2EXCat
constructor
A new instance of V2EXCat.
- #paw ⇒ Object
Constructor Details
#initialize ⇒ V2EXCat
Returns a new instance of V2EXCat.
8 9 10 11 12 13 14 |
# File 'lib/cat_claw/cats/v2ex_cat.rb', line 8 def initialize @base_url = "http://v2ex.com" @footprint = { source: "V2EX", jobs: [], } end |
Instance Attribute Details
#footprint ⇒ Object
Returns the value of attribute footprint.
7 8 9 |
# File 'lib/cat_claw/cats/v2ex_cat.rb', line 7 def footprint @footprint end |
Instance Method Details
#paw ⇒ Object
16 17 18 19 20 21 |
# File 'lib/cat_claw/cats/v2ex_cat.rb', line 16 def paw 3.times do |i| whisper (i+1) end @footprint end |