Class: IpwhoApi::Security
- Inherits:
-
Struct
- Object
- Struct
- IpwhoApi::Security
- Defined in:
- lib/ipwho.rb
Instance Attribute Summary collapse
-
#isThreat ⇒ Object
Returns the value of attribute isThreat.
-
#isTor ⇒ Object
Returns the value of attribute isTor.
-
#isVpn ⇒ Object
Returns the value of attribute isVpn.
Class Method Summary collapse
Instance Attribute Details
#isThreat ⇒ Object
Returns the value of attribute isThreat
114 115 116 |
# File 'lib/ipwho.rb', line 114 def isThreat @isThreat end |
#isTor ⇒ Object
Returns the value of attribute isTor
114 115 116 |
# File 'lib/ipwho.rb', line 114 def isTor @isTor end |
#isVpn ⇒ Object
Returns the value of attribute isVpn
114 115 116 |
# File 'lib/ipwho.rb', line 114 def isVpn @isVpn end |
Class Method Details
.from_hash(hash) ⇒ Object
115 116 117 118 119 120 121 |
# File 'lib/ipwho.rb', line 115 def self.from_hash(hash) new( isVpn: hash["isVpn"], isTor: hash["isTor"], isThreat: hash["isThreat"] ) end |