Class: Rdomino::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/rdomino/server.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server = 'BY0000') ⇒ Server

Returns a new instance of Server.



17
18
19
# File 'lib/rdomino/server.rb', line 17

def initialize(server='BY0000')
  @log = Session.get["#{server}!!log.nsf"]
end

Class Method Details

.[](a) ⇒ Object



4
5
6
# File 'lib/rdomino/server.rb', line 4

def [](a)
  new(a)
end

Instance Method Details

#log(pattern, time) ⇒ Object

:days_ago



10
11
12
13
14
15
# File 'lib/rdomino/server.rb', line 10

def log(pattern,time)
  s = "Form='Events'"
  @log.search(s,time).each{|d|
    puts d.getItemValue("Eventlist").select{|line| line.match(pattern)}
  }  
end