Sha256: 17d97c61e7f04c1f1ab9a5e3aefbc41227eeaf8158265f55c0435dba0c985b7e

Contents?: true

Size: 616 Bytes

Versions: 1

Compression:

Stored size: 616 Bytes

Contents

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

            response = client("System.SystemInfo").call(method) do
              if args
                message args
              end
            end

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

        def respond_to?(method)
          client("System.SystemInfo").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/system/system_info.rb