Class: GeoIP::ASN
- Inherits:
-
Struct
- Object
- Struct
- GeoIP::ASN
- Defined in:
- lib/geoip.rb
Instance Attribute Summary collapse
-
#asn ⇒ Object
Returns the value of attribute asn.
-
#number ⇒ Object
(also: #as_num)
Returns the value of attribute number.
Instance Method Summary collapse
Instance Attribute Details
#asn ⇒ Object
Returns the value of attribute asn
196 197 198 |
# File 'lib/geoip.rb', line 196 def asn @asn end |
#number ⇒ Object Also known as: as_num
Returns the value of attribute number
196 197 198 |
# File 'lib/geoip.rb', line 196 def number @number end |
Instance Method Details
#to_hash ⇒ Object
200 201 202 |
# File 'lib/geoip.rb', line 200 def to_hash Hash[each_pair.to_a] end |