class NeptuneApex::Controller

Attributes

password[RW]

Controller password

url[RW]
user[RW]

Controller username

Public Instance Methods

datalog() click to toggle source

Get the datalog from the controller

# File lib/neptune_apex/controller.rb, line 26
def datalog
  Datalog.from_xml(open("#{@url}/cgi-bin/datalog.xml"))
end
status() click to toggle source

Get the current status of the controller

# File lib/neptune_apex/controller.rb, line 19
def status
  Status.from_xml(open("#{@url}/cgi-bin/status.xml"))
end
user_agent() click to toggle source

Get a prepared UserAgent

# File lib/neptune_apex/controller.rb, line 32
def user_agent
  unless @user_agent
    @user_agent = HTTPClient.new
    @user_agent.set_auth(@url, @user, @password)
  end

  @user_agent
end