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.9.4 lib/brief/server/handlers/info.rb
brief-1.9.3 lib/brief/server/handlers/info.rb
brief-1.9.2 lib/brief/server/handlers/info.rb
brief-1.9.1 lib/brief/server/handlers/info.rb
brief-1.9.0 lib/brief/server/handlers/info.rb
brief-1.8.12 lib/brief/server/handlers/info.rb
brief-1.8.11 lib/brief/server/handlers/info.rb
brief-1.8.10 lib/brief/server/handlers/info.rb
brief-1.8.9 lib/brief/server/handlers/info.rb
brief-1.8.8 lib/brief/server/handlers/info.rb
brief-1.8.6 lib/brief/server/handlers/info.rb
brief-1.8.5 lib/brief/server/handlers/info.rb
brief-1.8.4 lib/brief/server/handlers/info.rb
brief-1.8.3 lib/brief/server/handlers/info.rb
brief-1.8.2 lib/brief/server/handlers/info.rb
brief-1.8.1 lib/brief/server/handlers/info.rb
brief-1.8.0 lib/brief/server/handlers/info.rb
brief-1.7.3 lib/brief/server/handlers/info.rb
brief-1.7.2 lib/brief/server/handlers/info.rb
brief-1.7.1 lib/brief/server/handlers/info.rb