class Object

Public Instance Methods

convert(hash) click to toggle source
# File lib/mince/shared_examples/interface_example.rb, line 173
def convert(hash)
  HashWithIndifferentAccess.new(hash).tap do |h|
    if h[:created_at]
      h[:created_at] = h[:created_at].to_s
    end
  end
end
convert_each(ary) click to toggle source
# File lib/mince/shared_examples/interface_example.rb, line 181
def convert_each(ary)
  ary.map{|a| convert(a) }
end