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.3.4 lib/name-spotter/client.rb
name-spotter-0.3.3 lib/name-spotter/client.rb
name-spotter-0.3.2 lib/name-spotter/client.rb
name-spotter-0.3.1 lib/name-spotter/client.rb
name-spotter-0.3.0 lib/name-spotter/client.rb
name-spotter-0.2.4 lib/name-spotter/client.rb
name-spotter-0.2.3 lib/name-spotter/client.rb
name-spotter-0.2.2 lib/name-spotter/client.rb
name-spotter-0.2.1 lib/name-spotter/client.rb
name-spotter-0.2.0 lib/name-spotter/client.rb
name-spotter-0.1.11 lib/name-spotter/client.rb
name-spotter-0.1.10 lib/name-spotter/client.rb
name-spotter-0.1.9 lib/name-spotter/client.rb
name-spotter-0.1.8 lib/name-spotter/client.rb
name-spotter-0.1.7 lib/name-spotter/client.rb
name-spotter-0.1.6 lib/name-spotter/client.rb
name-spotter-0.1.5 lib/name-spotter/client.rb
name-spotter-0.1.4 lib/name-spotter/client.rb
name-spotter-0.1.3 lib/name-spotter/client.rb
name-spotter-0.1.2 lib/name-spotter/client.rb