Class: Dao::Interface
- Inherits:
-
Object
- Object
- Dao::Interface
- Defined in:
- lib/dao/interface.rb
Constant Summary collapse
- Attrs =
%w( api path route method doc )
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Interface
constructor
A new instance of Interface.
- #update(options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Interface
Returns a new instance of Interface.
6 7 8 |
# File 'lib/dao/interface.rb', line 6 def initialize( = {}) update() end |
Instance Method Details
#update(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/dao/interface.rb', line 10 def update( = {}) .each do |key, val| send("#{ key }=", val) end end |