Class: MaxMindDB::Result::Traits

Inherits:
Object
  • Object
show all
Defined in:
lib/maxminddb/result/traits.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Traits

Returns a new instance of Traits.



4
5
6
# File 'lib/maxminddb/result/traits.rb', line 4

def initialize(raw)
  @raw = raw || {}
end

Instance Method Details

#is_anonymous_proxyObject



8
9
10
# File 'lib/maxminddb/result/traits.rb', line 8

def is_anonymous_proxy
  raw['is_anonymous_proxy']
end

#is_satellite_providerObject



12
13
14
# File 'lib/maxminddb/result/traits.rb', line 12

def is_satellite_provider
  raw['is_satellite_provider']
end