Class: IParty::MaxMind::Result::Asn
- Inherits:
-
IParty::MaxMind::Result
- Object
- Hash
- IParty::MaxMind::Result
- IParty::MaxMind::Result::Asn
- Defined in:
- lib/iparty/max_mind/result.rb
Overview
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Asn
constructor
A new instance of Asn.
Methods inherited from IParty::MaxMind::Result
define_attr, export_attr, #inspect, #presence, #present?
Constructor Details
#initialize(data = {}) ⇒ Asn
Returns a new instance of Asn.
145 146 147 |
# File 'lib/iparty/max_mind/result.rb', line 145 def initialize(data = {}) data ? super({ autonomous_system_network: data[:network] }.compact.merge(data)) : super() end |