class Fcmpush::JsonResponse

Constants

HAS_SYMBOL_GC

Public Instance Methods

inspect() click to toggle source
# File lib/fcmpush/json_response.rb, line 14
def inspect
  "#<JsonResponse response: #{response.inspect}, json: #{json}>"
end
Also aliased as: to_s
json() click to toggle source
# File lib/fcmpush/json_response.rb, line 10
def json
  parsable? ? JSON.parse(body, symbolize_names: HAS_SYMBOL_GC) : nil
end
parsable?() click to toggle source
# File lib/fcmpush/json_response.rb, line 19
def parsable?
  !body.nil? && !body.empty?
end
to_s()
Alias for: inspect