Class: Anisoptera::App
- Inherits:
-
Object
- Object
- Anisoptera::App
- Defined in:
- lib/anisoptera/app.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #configure(&block) ⇒ Object
- #endpoint(&block) ⇒ Object
-
#initialize ⇒ App
constructor
A new instance of App.
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/anisoptera/app.rb', line 14 def config @config end |
Instance Method Details
#configure(&block) ⇒ Object
20 21 22 |
# File 'lib/anisoptera/app.rb', line 20 def configure(&block) block.call @config end |
#endpoint(&block) ⇒ Object
24 25 26 |
# File 'lib/anisoptera/app.rb', line 24 def endpoint(&block) Anisoptera::Endpoint.factory(@config, block) end |