Module: Octarine::App
- Extended by:
- Forwardable
- Defined in:
- lib/octarine/app.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#router ⇒ Object
:nodoc:.
Class Method Summary collapse
-
.included(includer) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#endpoint(host_or_client) ⇒ Object
:call-seq: app.endpoint(string) -> endpoint app.endpoint(client) -> endpoint.
Instance Attribute Details
#router ⇒ Object
:nodoc:
86 87 88 |
# File 'lib/octarine/app.rb', line 86 def router @router end |
Class Method Details
.included(includer) ⇒ Object
:nodoc:
97 98 99 |
# File 'lib/octarine/app.rb', line 97 def self.included(includer) # :nodoc: includer.extend(ClassMethods) end |
Instance Method Details
#endpoint(host_or_client) ⇒ Object
:call-seq: app.endpoint(string) -> endpoint app.endpoint(client) -> endpoint
Create an Octarine::Endpoint with either a string of the host:port or a client instance API compatible with Octarine::SimpleHTTP.
107 108 109 |
# File 'lib/octarine/app.rb', line 107 def endpoint(host_or_client) Octarine::Endpoint.new(host_or_client) end |