class GemLookup::Serializers::Json
Public Class Methods
display(json:)
click to toggle source
Outputs the json (in a pretty format) for the gem @param json [Hash] the json hash.
# File lib/gem_lookup/serializers/json.rb, line 11 def display(json:) puts JSON.pretty_generate json end
streaming?()
click to toggle source
Returns if the serializer is meant to be used to stream content. @return [Boolean] whether the serializer is meant for streaming content.
# File lib/gem_lookup/serializers/json.rb, line 17 def streaming? false end