module JSONHelper

Public Instance Methods

get_json_field(json, field) click to toggle source
# File lib/passbyme2fa-client/json_helper.rb, line 2
def get_json_field(json, field)
  json[field] or raise IOError.new("Missing JSON field: #{field}")
end