Sha256: 0316804fe899e35533c1899adc118bd2a22b4889b05af1485d053cce0f1c928e
Contents?: true
Size: 793 Bytes
Versions: 2
Compression:
Stored size: 793 Bytes
Contents
require 'ivapi/client' require 'ivapi/default' require 'pry' module Ivapi extend Ivapi::Configuration class << self def client unless defined?(@client) && @client.same_options?(options) @client = Ivapi::Client.new(options) end @client end def respond_to_missing?(method_name, include_private = false) client.respond_to?(method_name, include_private) end if RUBY_VERSION >= '1.9' def respond_to?(method_name, include_private = false) client.respond_to?(method_name, include_private) || super end if RUBY_VERSION < '1.9' private def method_missing(method_name, *args, &block) return super unless client.respond_to?(method_name) client.send(method_name, *args, &block) end end end Ivapi.setup
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ivapi-1.1.1 | lib/ivapi.rb |
ivapi-1.1.0 | lib/ivapi.rb |