Sha256: 748c38b54f34d14acfad437a91b961abce573a860e7b07ca91d320a7978e6733

Contents?: true

Size: 355 Bytes

Versions: 28

Compression:

Stored size: 355 Bytes

Contents

class NameSpotter
  class Client
    class ClientError < Exception; end

    attr_reader :host
    attr_reader :port

    def initialize(opts)
      @host = opts[:host]
      @port = opts[:port]
      @names = []
    end

    def find(text)
      raise "Subclass must implement find"
    end

    def add_name(name)
      @names << name
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
name-spotter-0.1.1 lib/name-spotter/client.rb
name-spotter-0.1.0 lib/name-spotter/client.rb
name-spotter-0.0.7 lib/name-spotter/client.rb
name-spotter-0.0.6 lib/name-spotter/client.rb
name-spotter-0.0.5 lib/name-spotter/client.rb
name-spotter-0.0.4 lib/name-spotter/client.rb
name-spotter-0.0.3 lib/name-spotter/client.rb
name-spotter-0.0.2 lib/name-spotter/client.rb