Class: Beatport::Support::Parser

Inherits:
HTTParty::Parser
  • Object
show all
Defined in:
lib/beatport/support/parser.rb

Overview

A custom HTTParter parse that underscores the keys of the result

Instance Method Summary collapse

Instance Method Details

#parseObject



5
6
7
# File 'lib/beatport/support/parser.rb', line 5

def parse
  Inflector.process_keys(super) { |k| Inflector.underscore(k) }
end