Class: IpwhoApi::Currency
- Inherits:
-
Struct
- Object
- Struct
- IpwhoApi::Currency
- Defined in:
- lib/ipwho.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#hexUnicode ⇒ Object
Returns the value of attribute hexUnicode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#namePlural ⇒ Object
Returns the value of attribute namePlural.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
Class Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
83 84 85 |
# File 'lib/ipwho.rb', line 83 def code @code end |
#hexUnicode ⇒ Object
Returns the value of attribute hexUnicode
83 84 85 |
# File 'lib/ipwho.rb', line 83 def hexUnicode @hexUnicode end |
#name ⇒ Object
Returns the value of attribute name
83 84 85 |
# File 'lib/ipwho.rb', line 83 def name @name end |
#namePlural ⇒ Object
Returns the value of attribute namePlural
83 84 85 |
# File 'lib/ipwho.rb', line 83 def namePlural @namePlural end |
#symbol ⇒ Object
Returns the value of attribute symbol
83 84 85 |
# File 'lib/ipwho.rb', line 83 def symbol @symbol end |
Class Method Details
.from_hash(hash) ⇒ Object
87 88 89 90 91 92 93 94 95 |
# File 'lib/ipwho.rb', line 87 def self.from_hash(hash) new( code: hash["code"], symbol: hash["symbol"], name: hash["name"], namePlural: hash["name_plural"], hexUnicode: hash["hex_unicode"] ) end |