Class: Kudzu::Model::Base
- Inherits:
-
Object
- Object
- Kudzu::Model::Base
- Defined in:
- lib/kudzu/model/base.rb
Direct Known Subclasses
Adapter::Memory::Link, Adapter::Memory::Page, Agent::Http::Connection, Agent::Reference, Agent::Response, Agent::Robots::Rule, Agent::Robots::RuleSet, Agent::Robots::Txt
Instance Method Summary collapse
-
#initialize(attr = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(attr = {}) ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'lib/kudzu/model/base.rb', line 4 def initialize(attr = {}) attr.each { |k, v| public_send("#{k}=", v) if respond_to?("#{k}=") } end |