Module: Mintchip

Defined in:
lib/mintchip.rb,
lib/mintchip/hosted.rb,
lib/mintchip/version.rb,
lib/mintchip/hosted/info.rb,
lib/mintchip/mintchip_message.rb,
lib/mintchip/value_request_message.rb,
lib/mintchip/hosted/transaction_log_entry.rb

Defined Under Namespace

Classes: CryptoError, Error, FormatError, Hosted, InvalidCurrency, MintchipError, MintchipMessage, SystemError, ValueRequestMessage

Constant Summary collapse

CURRENCY_CODES =
{ CAD: 1 }
VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.currency_code(name) ⇒ Object



9
10
11
# File 'lib/mintchip.rb', line 9

def self.currency_code(name)
  CURRENCY_CODES[name.to_sym] or raise InvalidCurrency
end