Sha256: 8d794932412da8473fc81170dc1d85776fb03e25c8dfff986c78accb5634ab4c

Contents?: true

Size: 396 Bytes

Versions: 9

Compression:

Stored size: 396 Bytes

Contents

module Grape
  # An Endpoint is the proxy scope in which all routing
  # blocks are executed. In other words, any methods
  # on the instance level of this class may be called
  # from inside a `get`, `post`, etc.
  class Endpoint
    class << self
      attr_accessor :header_config_obj

      alias :config_obj  :header_config_obj
      alias :config_obj= :header_config_obj=

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
grape-dsl-1.2.2 lib/grape-dsl/endpoint.rb
grape-dsl-1.2.1 lib/grape-dsl/endpoint.rb
grape-dsl-1.2.0 lib/grape-dsl/endpoint.rb
grape-dsl-1.1.4 lib/grape-dsl/endpoint.rb
grape-dsl-1.1.3 lib/grape-dsl/endpoint.rb
grape-dsl-1.1.2 lib/grape-dsl/endpoint.rb
grape-dsl-1.1.1 lib/grape-dsl/endpoint.rb
grape-dsl-1.1.0 lib/grape-dsl/endpoint.rb
grape-dsl-1.0.0 lib/grape-dsl/endpoint.rb