Class: MaxMindDB::Result::Traits
- Inherits:
-
Object
- Object
- MaxMindDB::Result::Traits
- Defined in:
- lib/maxminddb/result/traits.rb
Instance Method Summary collapse
-
#initialize(raw) ⇒ Traits
constructor
A new instance of Traits.
- #is_anonymous_proxy ⇒ Object
- #is_satellite_provider ⇒ Object
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_proxy ⇒ Object
8 9 10 |
# File 'lib/maxminddb/result/traits.rb', line 8 def is_anonymous_proxy raw['is_anonymous_proxy'] end |
#is_satellite_provider ⇒ Object
12 13 14 |
# File 'lib/maxminddb/result/traits.rb', line 12 def is_satellite_provider raw['is_satellite_provider'] end |