Class: IParty::MaxMind::Result::Asn

Inherits:
IParty::MaxMind::Result show all
Defined in:
lib/iparty/max_mind/result.rb

Overview


Instance Method Summary collapse

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