Sha256: 340e86f159a7bd3426a323219d7895e65de0ac153f5922c92aacb35e2fd50789

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true
require 'faraday'

module BitBucket
  class Response::Helpers < Response
    def on_complete(env)
      env[:body].class.class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
        include BitBucket::Result

        def env
          @env
        end

      RUBY_EVAL
      env[:body].instance_eval { @env = env }
    end
  end # Response::Helpers
end # BitBucket

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitbuckets-0.2.0 lib/bitbucket_rest_api/response/helpers.rb