Class: IpwhoApi::Security

Inherits:
Struct
  • Object
show all
Defined in:
lib/ipwho.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#isThreatObject

Returns the value of attribute isThreat

Returns:

  • (Object)

    the current value of isThreat



114
115
116
# File 'lib/ipwho.rb', line 114

def isThreat
  @isThreat
end

#isTorObject

Returns the value of attribute isTor

Returns:

  • (Object)

    the current value of isTor



114
115
116
# File 'lib/ipwho.rb', line 114

def isTor
  @isTor
end

#isVpnObject

Returns the value of attribute isVpn

Returns:

  • (Object)

    the current value of 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