Module: Buildmeister::JSONUtils

Included in:
Lighthouse::Account, Lighthouse::Bin, Lighthouse::Project
Defined in:
lib/buildmeister/json_utils.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_utils.rb', line 5

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