Sha256: 86d9dee65c856f70c2ca816b7ab071d15fcf2f8568c9b2eef5633edde378013a

Contents?: true

Size: 257 Bytes

Versions: 2

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true

# Encapsulates an HTTP base response
class LayersResponse
  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

2 entries across 2 versions & 1 rubygems

Version Path
layers_service-0.2.0 lib/layers_service/layers_response.rb
layers_service-0.1.0 lib/layers_service/layers_response.rb