Class: UCD::Interface::Base
- Inherits:
-
Object
- Object
- UCD::Interface::Base
- Includes:
- HasAttributes
- Defined in:
- lib/ucd/interface/base.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
- #run ⇒ Object
Methods included from HasAttributes
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
14 15 16 |
# File 'lib/ucd/interface/base.rb', line 14 def initialize(attributes={}) update_attributes(attributes) end |
Class Method Details
.run(attributes = {}) ⇒ Object
8 9 10 |
# File 'lib/ucd/interface/base.rb', line 8 def self.run(attributes={}) new(attributes).run end |
Instance Method Details
#run ⇒ Object
18 19 20 |
# File 'lib/ucd/interface/base.rb', line 18 def run raise NotImplementedError end |