class Netscaler::Ha::Node

Public Class Methods

new(netscaler) click to toggle source
# File lib/netscaler/ha/node.rb, line 6
def initialize(netscaler)
  @netscaler=netscaler
end

Public Instance Methods

show(payload={}) click to toggle source
# File lib/netscaler/ha/node.rb, line 10
def show(payload={})
  if payload[:id] != nil then
    validate_payload(payload, [:id])
    return @netscaler.adapter.get("config/hanode/#{payload[:id]}")
  elsif payload == {} then
    return @netscaler.adapter.get('config/hanode/')
  else
    raise ArgumentError, 'payload supplied must have been missing :id'
  end
end
stat() click to toggle source
# File lib/netscaler/ha/node.rb, line 22
def stat
  @netscaler.adapter.get('stat/hanode')
end