Class: CatClaw::V2EXCat

Inherits:
Object
  • Object
show all
Defined in:
lib/cat_claw/cats/v2ex_cat.rb

Constant Summary collapse

KEYWORD =
"远程"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeV2EXCat

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

#footprintObject

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

#pawObject



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