Class: Spider::Resource
Instance Attribute Summary collapse
-
#definer ⇒ Object
readonly
Returns the value of attribute definer.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, definer = nil) ⇒ Resource
constructor
A new instance of Resource.
- #to_s ⇒ Object
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
#definer ⇒ Object (readonly)
Returns the value of attribute definer.
5 6 7 |
# File 'lib/spiderfw/resource.rb', line 5 def definer @definer end |
#path ⇒ Object (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_s ⇒ Object
12 13 14 |
# File 'lib/spiderfw/resource.rb', line 12 def to_s @path end |