lib/netscaler/server.rb
##
# method #add requires arg :name but :ipaddress and :domain are optional but requires one of them.
method #add requires arg :name but :ipaddress and :domain are optional but requires one of them.
method #add requires arg : name but : ipaddress and : domain are optional but requires one of them .
def add(server) 
      raise ArgumentError, 'server cannot be null' if server.nil?
      if server[:domain] != nil then
        validate_payload(server, [:name, :domain])
      else
        validate_payload(server, [:name, :ipaddress])
      end
      return @netscaler.adapter.post_no_body('config/server/', {'server' => server})
    end
def add ( server ) raise ArgumentError , 'server cannot be null' if server . nil? if server [ :domain ] != nil then validate_payload ( server , [ :name , :domain ] ) else validate_payload ( server , [ :name , :ipaddress ] ) end return @netscaler . adapter . post_no_body ( 'config/server/' , { 'server' => server } ) end
method #add requires arg :name but :ipaddress and :domain are optional but requires one of them.
method #add requires arg : name but : ipaddress and : domain are optional but requires one of them .
# :args: :name => 'foo', :ipaddress => '192.168.1.10', :domain => 'bar.com'
server