Class: NameSpotter::Client
Direct Known Subclasses
Defined Under Namespace
Classes: ClientError
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
- #add_name(name) ⇒ Object
- #find(text) ⇒ Object
-
#initialize(opts) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(opts) ⇒ Client
Returns a new instance of Client.
8 9 10 11 12 |
# File 'lib/name-spotter/client.rb', line 8 def initialize(opts) @host = opts[:host] @port = opts[:port] @names = [] end |