class WinevtBookmarkDocument
Attributes
result[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/fluent/plugin/bookmark_sax_parser.rb, line 6 def initialize @result = {} super end
Public Instance Methods
characters(string)
click to toggle source
# File lib/fluent/plugin/bookmark_sax_parser.rb, line 22 def characters(string) end
end_document()
click to toggle source
# File lib/fluent/plugin/bookmark_sax_parser.rb, line 28 def end_document end
end_element(name, attributes = [])
click to toggle source
# File lib/fluent/plugin/bookmark_sax_parser.rb, line 25 def end_element(name, attributes = []) end
start_document()
click to toggle source
# File lib/fluent/plugin/bookmark_sax_parser.rb, line 11 def start_document end
start_element(name, attributes = [])
click to toggle source
# File lib/fluent/plugin/bookmark_sax_parser.rb, line 14 def start_element(name, attributes = []) if name == "Bookmark" @result[:channel] = attributes[0][1] rescue nil @result[:record_id] = attributes[1][1].to_i rescue nil @result[:is_current] = attributes[2][1].downcase == "true" rescue nil end end