Sha256: 5afb50d147e2f8f6057a88900017eb3fbc1b29ce167c36f778bdc03a8dd53e1d

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

require "savon"
module F5
  class Icontrol
    class LocalLB
      class Pool < F5::Icontrol
        def method_missing(method, args = nil, &block)
          if respond_to? method
            response_key = "#{method.to_s}_response".to_sym

            response = client("LocalLB.Pool").call(method) do
              if args
                message args
              end
            end

            response.to_hash[response_key][:return]
          end
        end

        def respond_to?(method)
          client("LocalLB.Pool").operations.include? method
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
f5-icontrol-0.1.0 lib/f5/icontrol/local_lb/pool.rb