Class: Spider::Resource

Inherits:
Object show all
Defined in:
lib/spiderfw/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, definer = nil) ⇒ Resource

Returns a new instance of Resource.



7
8
9
10
# File 'lib/spiderfw/resource.rb', line 7

def initialize(path, definer=nil)
    @path = path
    @definer = definer
end

Instance Attribute Details

#definerObject (readonly)

Returns the value of attribute definer.



5
6
7
# File 'lib/spiderfw/resource.rb', line 5

def definer
  @definer
end

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/spiderfw/resource.rb', line 4

def path
  @path
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/spiderfw/resource.rb', line 12

def to_s
    @path
end