Sha256: 9ab8445f977fa9275275a8fab385fc5d8f0eced309ac490d1d43fcee0fc2515b

Contents?: true

Size: 152 Bytes

Versions: 6

Compression:

Stored size: 152 Bytes

Contents

require 'json'

module OxfordDictionary
  class Deserialize
    def call(payload)
      JSON.parse(payload, object_class: OpenStruct)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
oxford_dictionary-2.0.1 lib/oxford_dictionary/deserialize.rb
oxford_dictionary-2.0.0 lib/oxford_dictionary/deserialize.rb
oxford_dictionary-1.3.1 lib/oxford_dictionary/deserialize.rb
oxford_dictionary-1.3.0 lib/oxford_dictionary/deserialize.rb
oxford_dictionary-1.2.0 lib/oxford_dictionary/deserialize.rb
oxford_dictionary-1.1.0 lib/oxford_dictionary/deserialize.rb