Class: IpwhoApi::Flag
- Inherits:
-
Struct
- Object
- Struct
- IpwhoApi::Flag
- Defined in:
- lib/ipwho.rb
Instance Attribute Summary collapse
-
#flagIcon ⇒ Object
Returns the value of attribute flagIcon.
-
#flagUnicode ⇒ Object
Returns the value of attribute flagUnicode.
Class Method Summary collapse
Instance Attribute Details
#flagIcon ⇒ Object
Returns the value of attribute flagIcon
77 78 79 |
# File 'lib/ipwho.rb', line 77 def flagIcon @flagIcon end |
#flagUnicode ⇒ Object
Returns the value of attribute flagUnicode
77 78 79 |
# File 'lib/ipwho.rb', line 77 def flagUnicode @flagUnicode end |
Class Method Details
.from_hash(hash) ⇒ Object
78 79 80 |
# File 'lib/ipwho.rb', line 78 def self.from_hash(hash) new(flagIcon: hash["flag_Icon"], flagUnicode: hash["flag_unicode"]) end |