Class: IpwhoApi::UserAgentEngine
- Inherits:
-
Struct
- Object
- Struct
- IpwhoApi::UserAgentEngine
- Defined in:
- lib/ipwho.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
130 131 132 |
# File 'lib/ipwho.rb', line 130 def name @name end |
#version ⇒ Object
Returns the value of attribute version
130 131 132 |
# File 'lib/ipwho.rb', line 130 def version @version end |
Class Method Details
.from_hash(hash) ⇒ Object
131 132 133 |
# File 'lib/ipwho.rb', line 131 def self.from_hash(hash) new(name: hash["name"], version: hash["version"]) end |