Sha256: e74fe7407a4bfe1e9328041e3fcc0ec78d5bf07e727e6179aab7cef286a0583d

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

require_relative 'signature'

module Signore
  module Mapper
    module_function

    def from_h(hash)
      Signature.new(hash.map { |key, value| [key.to_sym, value] }.to_h)
    end

    def to_h(signature)
      signature.to_h
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
signore-0.6.0 lib/signore/mapper.rb
signore-0.5.0 lib/signore/mapper.rb