class MaxMind::GeoIP2::Record::Abstract
@!visibility private
Public Class Methods
new(record)
click to toggle source
# File lib/maxmind/geoip2/record/abstract.rb, line 8 def initialize(record) @record = record end
Protected Instance Methods
get(key)
click to toggle source
# File lib/maxmind/geoip2/record/abstract.rb, line 14 def get(key) if @record.nil? || !@record.key?(key) return false if key.start_with?('is_') return nil end @record[key] end