Class: CatClaw::RubyChinaCat

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

Constant Summary collapse

KEYWORD =
"远程"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRubyChinaCat

Returns a new instance of RubyChinaCat.



8
9
10
11
12
13
14
# File 'lib/cat_claw/cats/ruby_china_cat.rb', line 8

def initialize
  @base_url = "https://ruby-china.org"
  @footprint = {
    source: "RubyChina",
    jobs: [],
  }
end

Instance Attribute Details

#footprintObject

Returns the value of attribute footprint.



7
8
9
# File 'lib/cat_claw/cats/ruby_china_cat.rb', line 7

def footprint
  @footprint
end

Instance Method Details

#pawObject



16
17
18
19
20
21
# File 'lib/cat_claw/cats/ruby_china_cat.rb', line 16

def paw
  3.times do |i|
    whisper (i+1)
  end
  @footprint
end