class Simplepay::Support::Currency

Contains a name, recognized code, and basic formatting for a particular international monetary currency.

Attributes

code[R]
format[R]
name[R]

Public Class Methods

new(name, code, format) click to toggle source
# File lib/simplepay/support/currency.rb, line 11
def initialize(name, code, format)
  @name, @code, @format = name, code, format
end

Public Instance Methods

to_s() click to toggle source
# File lib/simplepay/support/currency.rb, line 15
def to_s
  "#{code}"
end