Module: Twenty::Rack

Defined in:
lib/twenty/server/rack.rb,
lib/twenty/server/rack/graphql.rb

Defined Under Namespace

Modules: GraphQL

Class Method Summary collapse

Class Method Details

.server(options = {}) ⇒ Thread

Parameters:

  • options (Hash, #to_h) (defaults to: {})

    Hash of server options

Returns:

  • (Thread)


12
13
14
# File 'lib/twenty/server/rack.rb', line 12

def self.server(options = {})
  Server.dir(Twenty.build, options.to_h)
end