Class: IpwhoApi::Connection
- Inherits:
-
Struct
- Object
- Struct
- IpwhoApi::Connection
- Defined in:
- lib/ipwho.rb
Instance Attribute Summary collapse
-
#asnNumber ⇒ Object
Returns the value of attribute asnNumber.
-
#asnOrg ⇒ Object
Returns the value of attribute asnOrg.
-
#connectionType ⇒ Object
Returns the value of attribute connectionType.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#isp ⇒ Object
Returns the value of attribute isp.
-
#org ⇒ Object
Returns the value of attribute org.
Class Method Summary collapse
Instance Attribute Details
#asnNumber ⇒ Object
Returns the value of attribute asnNumber
98 99 100 |
# File 'lib/ipwho.rb', line 98 def asnNumber @asnNumber end |
#asnOrg ⇒ Object
Returns the value of attribute asnOrg
98 99 100 |
# File 'lib/ipwho.rb', line 98 def asnOrg @asnOrg end |
#connectionType ⇒ Object
Returns the value of attribute connectionType
98 99 100 |
# File 'lib/ipwho.rb', line 98 def connectionType @connectionType end |
#domain ⇒ Object
Returns the value of attribute domain
98 99 100 |
# File 'lib/ipwho.rb', line 98 def domain @domain end |
#isp ⇒ Object
Returns the value of attribute isp
98 99 100 |
# File 'lib/ipwho.rb', line 98 def isp @isp end |
#org ⇒ Object
Returns the value of attribute org
98 99 100 |
# File 'lib/ipwho.rb', line 98 def org @org end |
Class Method Details
.from_hash(hash) ⇒ Object
102 103 104 105 106 107 108 109 110 111 |
# File 'lib/ipwho.rb', line 102 def self.from_hash(hash) new( asnNumber: hash["asn_number"], asnOrg: hash["asn_org"], isp: hash["isp"], org: hash["org"], domain: hash["domain"], connectionType: hash["connection_type"] ) end |