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.15.2 lib/brief/server/handlers/info.rb
brief-1.15.1 lib/brief/server/handlers/info.rb
brief-1.15.0 lib/brief/server/handlers/info.rb
brief-1.14.3 lib/brief/server/handlers/info.rb
brief-1.14.2 lib/brief/server/handlers/info.rb
brief-1.14.1 lib/brief/server/handlers/info.rb
brief-1.14.0 lib/brief/server/handlers/info.rb
brief-1.13.2 lib/brief/server/handlers/info.rb
brief-1.13.1 lib/brief/server/handlers/info.rb
brief-1.12.9 lib/brief/server/handlers/info.rb
brief-1.12.8 lib/brief/server/handlers/info.rb
brief-1.12.7 lib/brief/server/handlers/info.rb
brief-1.12.6 lib/brief/server/handlers/info.rb
brief-1.12.5 lib/brief/server/handlers/info.rb
brief-1.12.4 lib/brief/server/handlers/info.rb
brief-1.12.3 lib/brief/server/handlers/info.rb
brief-1.12.2 lib/brief/server/handlers/info.rb
brief-1.12.1 lib/brief/server/handlers/info.rb
brief-1.12.0 lib/brief/server/handlers/info.rb
brief-1.11.10 lib/brief/server/handlers/info.rb