Sha256: e0d3d140febe880a9296cb4eae4503c19b34c7dda79d319559240183455660c6

Contents?: true

Size: 339 Bytes

Versions: 47

Compression:

Stored size: 339 Bytes

Contents

module ApiClient

  module Mixins

    module ConnectionHooks

      attr_accessor :connection_hooks

      def connection(&block)
        @connection_hooks ||= []
        @connection_hooks.push(block) if block
        @connection_hooks
      end

      def connection_hooks
        @connection_hooks || []
      end

    end

  end

end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
api_client-0.6.0-java lib/api_client/mixins/connection_hooks.rb
api_client-0.6.0 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.26-java lib/api_client/mixins/connection_hooks.rb
api_client-0.5.26 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.25-java lib/api_client/mixins/connection_hooks.rb
api_client-0.5.25 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.24 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.22 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.21 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.20 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.19 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.18 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.17 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.16 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.15 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.14 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.13 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.12 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.11 lib/api_client/mixins/connection_hooks.rb
api_client-0.5.9 lib/api_client/mixins/connection_hooks.rb