Sha256: 5b2317c5dacc519e4d7cf40d6dc4258ad5c5bdba7938924664cdc7ca5e4676cd

Contents?: true

Size: 218 Bytes

Versions: 1

Compression:

Stored size: 218 Bytes

Contents

module Beatport
  # A custom HTTParter parse that underscores the keys of the result
  class Parser < HTTParty::Parser
    def parse
      Inflector.process_keys(super) { |k| Inflector.underscore(k) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beatport-0.1.1 lib/beatport/parser.rb