Class: IpwhoApi::UserAgentCPU

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#architectureObject

Returns the value of attribute architecture

Returns:

  • (Object)

    the current value of architecture



148
149
150
# File 'lib/ipwho.rb', line 148

def architecture
  @architecture
end

Class Method Details

.from_hash(hash) ⇒ Object



149
150
151
# File 'lib/ipwho.rb', line 149

def self.from_hash(hash)
  new(architecture: hash["architecture"])
end