Sha256: 98a554a18e298213717a10d2a7b535213915bbb4cda607147cc1aaac3d004b0d

Contents?: true

Size: 372 Bytes

Versions: 39

Compression:

Stored size: 372 Bytes

Contents

# encoding: utf-8

require 'faraday'

module Github
  class Response::Helpers < Response

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

        def env
          @env
        end

      RUBY_EVAL
      env[:body].instance_eval { @env = env }
    end

  end # Response::Helpers
end # Github

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
github_api-0.8.11 lib/github_api/response/helpers.rb
github_api-0.8.10 lib/github_api/response/helpers.rb
github_api-0.8.9 lib/github_api/response/helpers.rb
github_api-0.8.8 lib/github_api/response/helpers.rb
github_api-0.8.7 lib/github_api/response/helpers.rb
github_api-0.8.6 lib/github_api/response/helpers.rb
github_api-0.8.5 lib/github_api/response/helpers.rb
github_api-0.8.4 lib/github_api/response/helpers.rb
github_api-0.8.3 lib/github_api/response/helpers.rb
github_api-0.8.2 lib/github_api/response/helpers.rb
github_api-0.8.1 lib/github_api/response/helpers.rb
github_api-0.8.0 lib/github_api/response/helpers.rb
github_api-0.7.2 lib/github_api/response/helpers.rb
github_api-0.7.1 lib/github_api/response/helpers.rb
github_api-0.7.0 lib/github_api/response/helpers.rb
github_api-0.6.5 lib/github_api/response/helpers.rb
github_api-0.6.4 lib/github_api/response/helpers.rb
github_api-0.6.3 lib/github_api/response/helpers.rb
github_api-0.6.2 lib/github_api/response/helpers.rb
github_api-0.6.1 lib/github_api/response/helpers.rb