Module: Buildmeister::JSONTools

Defined in:
lib/buildmeister/json_tools.rb

Instance Method Summary collapse

Instance Method Details

#with_json_response(json) {|JSON.parse(json)| ... } ⇒ Object

Yields:

  • (JSON.parse(json))


5
6
7
# File 'lib/buildmeister/json_tools.rb', line 5

def with_json_response(json, &block)
  yield JSON.parse(json)
end