Sha256: b4ff32712d5f20b34ecc993a6e4f3bc5289acef882d6b70da8c9f19b122d566f
Contents?: true
Size: 537 Bytes
Versions: 2
Compression:
Stored size: 537 Bytes
Contents
require 'faraday/middleware' module Marvel module Connection private def connection options = { ssl: { verify: false }, url: 'https://gateway.marvel.com/v1/public/' } Faraday.new(options) do |connection| connection.use Faraday::Request::UrlEncoded connection.use Faraday::Response::RaiseError connection.use Faraday::Response::Rashify connection.use Faraday::Response::ParseJson connection.adapter(Faraday.default_adapter) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
marvel_api-0.1.2 | lib/marvel/connection.rb |
marvel_api-0.1.1 | lib/marvel/connection.rb |