class NameSpotter::Client

Attributes

host[R]
port[R]

Public Class Methods

new(opts) click to toggle source
# File lib/name-spotter/client.rb, line 8
def initialize(opts)
  @host = opts[:host]
  @port = opts[:port]
  @names = []
end

Public Instance Methods

add_name(name) click to toggle source
# File lib/name-spotter/client.rb, line 18
def add_name(name)
  @names << name
end
find(text) click to toggle source
# File lib/name-spotter/client.rb, line 14
def find(text)
  raise "Subclass must implement find"
end