Class: IpwhoApi::UserAgentDevice
- Inherits:
-
Struct
- Object
- Struct
- IpwhoApi::UserAgentDevice
- Defined in:
- lib/ipwho.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
-
#type ⇒ Object
Returns the value of attribute type.
-
#vendor ⇒ Object
Returns the value of attribute vendor.
Class Method Summary collapse
Instance Attribute Details
#model ⇒ Object
Returns the value of attribute model
142 143 144 |
# File 'lib/ipwho.rb', line 142 def model @model end |
#type ⇒ Object
Returns the value of attribute type
142 143 144 |
# File 'lib/ipwho.rb', line 142 def type @type end |
#vendor ⇒ Object
Returns the value of attribute vendor
142 143 144 |
# File 'lib/ipwho.rb', line 142 def vendor @vendor end |
Class Method Details
.from_hash(hash) ⇒ Object
143 144 145 |
# File 'lib/ipwho.rb', line 143 def self.from_hash(hash) new(type: hash["type"], vendor: hash["vendor"], model: hash["model"]) end |