Sha256: edee48451808105bc87e6699b0b93c23c8d7765953934ac3d8587023cc72f05c

Contents?: true

Size: 300 Bytes

Versions: 86

Compression:

Stored size: 300 Bytes

Contents

module Brief::Server::Handlers
  class Info
    def self.handle(path, briefcase, options={})
      request = options.fetch(:request)
      params  = request.params.symbolize_keys
      style   = params.fetch(:presenter, "default")

      [200, {}, briefcase.present(style, params)]
    end
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
brief-1.17.14 lib/brief/server/handlers/info.rb
brief-1.17.13 lib/brief/server/handlers/info.rb
brief-1.17.12 lib/brief/server/handlers/info.rb
brief-1.17.11 lib/brief/server/handlers/info.rb
brief-1.17.10 lib/brief/server/handlers/info.rb
brief-1.17.9 lib/brief/server/handlers/info.rb
brief-1.17.8 lib/brief/server/handlers/info.rb
brief-1.17.7 lib/brief/server/handlers/info.rb
brief-1.17.5 lib/brief/server/handlers/info.rb
brief-1.17.4 lib/brief/server/handlers/info.rb
brief-1.17.3 lib/brief/server/handlers/info.rb
brief-1.17.2 lib/brief/server/handlers/info.rb
brief-1.17.1 lib/brief/server/handlers/info.rb
brief-1.17.0 lib/brief/server/handlers/info.rb
brief-1.16.2 lib/brief/server/handlers/info.rb
brief-1.16.1 lib/brief/server/handlers/info.rb
brief-1.16.0 lib/brief/server/handlers/info.rb
brief-1.15.5 lib/brief/server/handlers/info.rb
brief-1.15.4 lib/brief/server/handlers/info.rb
brief-1.15.3 lib/brief/server/handlers/info.rb