Sha256: 745856097899851183d64acf2ffe393ddb027f68004a3f0e7034375746ee48ad

Contents?: true

Size: 253 Bytes

Versions: 14

Compression:

Stored size: 253 Bytes

Contents

module Beatport
  module Support
    # 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
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
beatport-0.4.0 lib/beatport/support/parser.rb
beatport-0.3.0 lib/beatport/support/parser.rb
beatport-0.2.3 lib/beatport/support/parser.rb
beatport-0.2.2 lib/beatport/support/parser.rb
beatport-0.2.1 lib/beatport/support/parser.rb
beatport-0.2.0 lib/beatport/support/parser.rb
beatport-0.1.10 lib/beatport/support/parser.rb
beatport-0.1.9 lib/beatport/support/parser.rb
beatport-0.1.8 lib/beatport/support/parser.rb
beatport-0.1.7 lib/beatport/support/parser.rb
beatport-0.1.6 lib/beatport/support/parser.rb
beatport-0.1.5 lib/beatport/support/parser.rb
beatport-0.1.3 lib/beatport/support/parser.rb
beatport-0.1.2 lib/beatport/support/parser.rb