Class: GeolocationCurrency
- Inherits:
-
Object
- Object
- GeolocationCurrency
- Defined in:
- lib/ipgeolocation_io/GeolocationCurrency.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json) ⇒ GeolocationCurrency
constructor
A new instance of GeolocationCurrency.
Constructor Details
#initialize(json) ⇒ GeolocationCurrency
Returns a new instance of GeolocationCurrency.
6 7 8 9 |
# File 'lib/ipgeolocation_io/GeolocationCurrency.rb', line 6 def initialize(json) @name = json["name"]; @code = json["code"]; end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/ipgeolocation_io/GeolocationCurrency.rb', line 4 def code @code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ipgeolocation_io/GeolocationCurrency.rb', line 3 def name @name end |