class Agent
Attributes
bwt_url[R]
executed_at[R]
ports[R]
Public Class Methods
new()
click to toggle source
# File lib/borderbot/agent.rb, line 10 def initialize @bwt_url = Qcore.new.bwt_url @ports = nil @executed_at = nil compute end
Public Instance Methods
compute()
click to toggle source
# File lib/borderbot/agent.rb, line 17 def compute #New Query Core instance queryCore = Qcore.new #Get XML data from BWT website bwtXML = queryCore.get_bwt_xml_data #set the ordereded ports into @ports @ports = queryCore.extract_ports(bwtXML) #set the last execution time @executed_at = DateTime.now end