Class: GeolocationCurrency

Inherits:
Object
  • Object
show all
Defined in:
lib/ipgeolocation_io/GeolocationCurrency.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/ipgeolocation_io/GeolocationCurrency.rb', line 4

def code
  @code
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/ipgeolocation_io/GeolocationCurrency.rb', line 3

def name
  @name
end