Sha256: 7742bf58b169d776bbf349cd14e1c873038cd3ccfec42c83555b5a3a55a90217
Contents?: true
Size: 258 Bytes
Versions: 4
Compression:
Stored size: 258 Bytes
Contents
# frozen_string_literal: true # Encapsulates an HTTP base response class KitabooResponse attr_reader :body, :status_code def initialize(http_response) @status_code = http_response.code.to_i @body = JSON.parse(http_response.read_body) end end
Version data entries
4 entries across 4 versions & 1 rubygems