Sha256: a7846d44054061eb32ba8c2cf7d84d667dee401b43599a621a05b22901ea3ed2

Contents?: true

Size: 508 Bytes

Versions: 5

Compression:

Stored size: 508 Bytes

Contents

require_relative 'service/handler'
require_relative 'service/router'
require_relative 'service/runner'

module SubZero
  module Service
    include Router
    include Loggable
    include Runner

    def sid service_id = nil
      @sid = service_id.to_sym if service_id
      @sid
    end

    def resolve message
      if handler = routes[message.verb]
        handler[message]
      else
        # TODO verb mismatch error
      end
    end

    private

    def socket
      Socket.new
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sub_zero-0.0.9 lib/sub_zero/service.rb
sub_zero-0.0.8 lib/sub_zero/service.rb
sub_zero-0.0.7 lib/sub_zero/service.rb
sub_zero-0.0.6 lib/sub_zero/service.rb
sub_zero-0.0.5 lib/sub_zero/service.rb