Sha256: 79fe652c63586b9f03fd4b29153650b89705011638076d7ac97a61da7b9e73fc

Contents?: true

Size: 170 Bytes

Versions: 3

Compression:

Stored size: 170 Bytes

Contents

require 'faraday'

module Faraday
  class Response::ParseYaml < Response::Middleware
    dependency 'yaml'

    def parse(body)
      ::YAML.load(body)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faraday_middleware-0.7.0 lib/faraday/response/parse_yaml.rb
faraday_middleware-0.7.0.rc1 lib/faraday/response/parse_yaml.rb
faraday_middleware-0.6.5 lib/faraday/response/parse_yaml.rb