Class: IpwhoApi::Flag

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#flagIconObject

Returns the value of attribute flagIcon

Returns:

  • (Object)

    the current value of flagIcon



77
78
79
# File 'lib/ipwho.rb', line 77

def flagIcon
  @flagIcon
end

#flagUnicodeObject

Returns the value of attribute flagUnicode

Returns:

  • (Object)

    the current value of 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