Sha256: caf43979c83ddc226c6126b216b1863301d06cffbb001e174fa0ebb80069ba7e

Contents?: true

Size: 220 Bytes

Versions: 1

Compression:

Stored size: 220 Bytes

Contents

module Shingoncoder
  class Response
    attr_reader :code, :body

    def initialize(properties)
      @id = properties.fetch('id')
      @code = properties.fetch('code')
      @body = { 'id' => @id }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shingoncoder-0.0.1 lib/shingoncoder/response.rb