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