class Trackerific::Parsers::Base
Public Class Methods
new(package_id, response)
click to toggle source
# File lib/trackerific/parsers/base.rb, line 2 def initialize(package_id, response) @package_id = package_id @response = response end
Public Instance Methods
parse()
click to toggle source
# File lib/trackerific/parsers/base.rb, line 7 def parse @result ||= if response_error response_error else Trackerific::Details.new(@package_id, summary, events) end end
Protected Instance Methods
events()
click to toggle source
# File lib/trackerific/parsers/base.rb, line 27 def events raise NotImplementedError, "Override this method in your parser", caller end
response_error()
click to toggle source
# File lib/trackerific/parsers/base.rb, line 17 def response_error raise NotImplementedError, "Override this method in your parser", caller end
summary()
click to toggle source
# File lib/trackerific/parsers/base.rb, line 22 def summary raise NotImplementedError, "Override this method in your parser", caller end