Class: Geostats::Grabber::Log
- Inherits:
-
Object
- Object
- Geostats::Grabber::Log
- Defined in:
- lib/geostats/grabber/log.rb
Instance Method Summary collapse
- #icon ⇒ Object
-
#initialize(uuid) ⇒ Log
constructor
A new instance of Log.
- #logged_at ⇒ Object
- #message ⇒ Object
Constructor Details
Instance Method Details
#icon ⇒ Object
8 9 10 11 12 |
# File 'lib/geostats/grabber/log.rb', line 8 def icon if @data =~ /<img id="ctl00_ContentBody_LogBookPanel1_LogImage".*?src="\/images\/icons\/(.*?).gif" .*? \/>/ $1 end end |
#logged_at ⇒ Object
20 21 22 23 24 |
# File 'lib/geostats/grabber/log.rb', line 20 def logged_at if @data =~ /<span id="ctl00_ContentBody_LogBookPanel1_LogDate">(.*?)<\/span>/ Time.parse($1) rescue nil end end |