class Ipay::Formatters::UnderscoreFormatter

Attributes

formatted_content[RW]
original_content[RW]

Public Class Methods

new() click to toggle source
# File lib/ipay/formatters/underscore_formatter.rb, line 6
def initialize
  @original_content = ''
end

Public Instance Methods

call(options={}) click to toggle source
# File lib/ipay/formatters/underscore_formatter.rb, line 9
def call(options={})
  original_content = options[:content]
  @formatted_content = original_content.deep_underscore_keys
end