lib/trusona/resources/user_identifier.rb in trusona-2.4.0 vs lib/trusona/resources/user_identifier.rb in trusona-2.5.0
- old
+ new
@@ -17,11 +17,11 @@
def to_h
@params
end
- def to_json
+ def to_json(*_args)
JSON(to_h)
end
def valid?
validate
@@ -34,15 +34,17 @@
private
def attributes_present
return false unless @params.key?(:identifier)
return false unless @params.key?(:trusona_id)
+
true
end
def attributes_filled
return false if @params.fetch(:identifier).empty?
return false if @params.fetch(:trusona_id).empty?
+
true
end
end
end
end