Class: Rdomino::Server
- Inherits:
-
Object
- Object
- Rdomino::Server
- Defined in:
- lib/rdomino/server.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(server = 'BY0000') ⇒ Server
constructor
A new instance of Server.
-
#log(pattern, time) ⇒ Object
:days_ago.
Constructor Details
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 |