Class: Eco::API::Session::Config::ApiDefChain
- Defined in:
- lib/eco/api/session/config.rb
Session and API collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#params ⇒ Object
Returns the value of attribute params.
-
#root ⇒ Object
Returns the value of attribute root.
Session and API collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
100 101 102 |
# File 'lib/eco/api/session/config.rb', line 100 def name @name end |
#params ⇒ Object
Returns the value of attribute params
100 101 102 |
# File 'lib/eco/api/session/config.rb', line 100 def params @params end |
#root ⇒ Object
Returns the value of attribute root
100 101 102 |
# File 'lib/eco/api/session/config.rb', line 100 def root @root end |
Instance Method Details
#add_space(space, **kargs, &block) ⇒ Object
101 102 103 104 |
# File 'lib/eco/api/session/config.rb', line 101 def add_space(space, **kargs, &block) kargs = (params || {}).merge(kargs).merge(space: space) root.add_api(name, **kargs, &block) end |