Sha256: a1621ba9d3f265b8acea2a1dbd51ffcadb6532de935183055299e0fdc9bc575e

Contents?: true

Size: 342 Bytes

Versions: 1

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true
require 'excon'
require 'excon/addressable'
require 'excon/hypermedia/hyper_media'

# :nodoc:
module Excon
  # HyperMedia addition to Excon.
  #
  module Hypermedia
    def new(url, params = {})
      params[:hypermedia] ? super.extend(HyperMedia) : super
    end
  end

  singleton_class.prepend Hypermedia
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
excon-hypermedia-0.1.0 lib/excon/hypermedia.rb