Class: OEXRWrapper::Currency

Inherits:
Object
  • Object
show all
Defined in:
lib/oexrwrapper/objects/currency.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, name) ⇒ Currency

Returns a new instance of Currency.



5
6
7
8
# File 'lib/oexrwrapper/objects/currency.rb', line 5

def initialize(code, name)
  @code = code
  @name = name
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/oexrwrapper/objects/currency.rb', line 3

def code
  @code
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/oexrwrapper/objects/currency.rb', line 3

def name
  @name
end