lib/excon/hypermedia.rb in excon-hypermedia-0.1.0 vs lib/excon/hypermedia.rb in excon-hypermedia-0.2.0
- old
+ new
@@ -1,17 +1,9 @@
# 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
+require 'excon/hypermedia/link'
+require 'excon/hypermedia/middleware'
+require 'excon/hypermedia/resource'
+require 'excon/hypermedia/response'
+require 'excon/hypermedia/version'