Class: Dao::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/dao/interface.rb

Constant Summary collapse

Attrs =
%w( api path method doc )

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Interface

Returns a new instance of Interface.



6
7
8
# File 'lib/dao/interface.rb', line 6

def initialize(options = {})
  update(options)
end

Instance Method Details

#update(options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/dao/interface.rb', line 10

def update(options = {})
  options.each do |key, val|
    send("#{ key }=", val)
  end
end