Module: FCS

Extended by:
Config
Defined in:
lib/fcs.rb,
lib/fcs/client.rb,
lib/fcs/config.rb,
lib/fcs/request.rb,
lib/fcs/version.rb,
lib/fcs/response.rb,
lib/fcs/hash_request.rb,
lib/fcs/string_request.rb,
lib/fcs/sendmsg_request.rb

Defined Under Namespace

Modules: Config Classes: Client, HashRequest, Request, Response, SendmsgRequest, StringRequest

Constant Summary collapse

VERSION =
"0.0.1"

Constants included from Config

Config::DEFAULT_AUTO_CONNECT, Config::DEFAULT_LOCAL_HOST, Config::DEFAULT_LOCAL_PORT, Config::DEFAULT_REMOTE_HOST, Config::DEFAULT_REMOTE_PORT, Config::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Config

configure, extended, options, reset

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to FCS::Client



16
17
18
19
# File 'lib/fcs.rb', line 16

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ FCS::Client

Alias for FCS::Client.new

Returns:



11
12
13
# File 'lib/fcs.rb', line 11

def new(options={})
  FCS::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Include FCS::Client methods in respond_to?

Returns:

  • (Boolean)


22
23
24
# File 'lib/fcs.rb', line 22

def respond_to?(method, include_private=false)
  new.respond_to?(method, include_private) || super(method, include_private)
end