module Skalka
Constants
- NullJsonError
- VERSION
Public Instance Methods
call(json)
click to toggle source
# File lib/skalka.rb, line 15 def call(json) raise_null_json_error if json.nil? parsed_json = Functions[:parse_and_symbolize_keys][json] { data: Functions[:extract_resource][parsed_json], **Functions[:extra_fields][parsed_json] } end
Private Instance Methods
raise_null_json_error()
click to toggle source
# File lib/skalka.rb, line 26 def raise_null_json_error raise NullJsonError, "JSON is nil" end