class UserAgent::Browsers::Base
def to_h
def to_h return unless application hash = { :browser => browser, :platform => platform, :os => os, :mobile => mobile?, :bot => bot?, } if version hash[:version] = version.to_a else hash[:version] = nil end if comment = application.comment hash[:comment] = comment.dup else hash[:comment] = nil end hash end