Module: Octarine::App

Extended by:
Forwardable
Defined in:
lib/octarine/app.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#routerObject

: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