class GenesisRuby::Utils::Formatters::Response::Formats::Amount

Response Amount Formatter. Converts Minor Currency to Major currency format

def format_key(amount, currency)

Format the given amount response key and its currency to major currency format
def format_key(amount, currency)
  GenesisRuby::Utils::MoneyFormat.exponent_to_amount(amount, currency)
rescue StandardError
  amount
end

def formatting_keys

The Response keys that the formatter will be applied to
def formatting_keys
  %w(amount leftover_amount)
end

def required_keys

The keys required for formatting the specific response key
def required_keys
  %w(currency)
end