rootstrap/best_buy_ruby

View on GitHub
lib/best_buy/helpers/api_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'best_buy'

module BestBuy
  class APIHelper
    def parse_response(response)
      JSON.parse(response).deep_transform_keys do |key|
        key.to_s.underscore.to_sym
      end
    end
  end
end