class Moxprox::Cluster
Attributes
logger[R]
Public Class Methods
new(opts = {})
click to toggle source
# File lib/moxprox/cluster.rb, line 5 def initialize(opts = {}) @ticket = Ticket.login(opts.fetch(:host), opts.fetch(:username), opts.fetch(:password)) @logger = opts[:logger] || NullLoger.new end
Public Instance Methods
node(name)
click to toggle source
# File lib/moxprox/cluster.rb, line 10 def node(name) Node.new(self, name) end
request(path, method = "get", query = {})
click to toggle source
# File lib/moxprox/cluster.rb, line 14 def request(path, method = "get", query = {}) Request.new(path, method, query).perform(@ticket) end