Class: Tidewave::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/tidewave/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/tidewave/configuration.rb', line 7

def initialize
  # Rails has a hosts middleware which already checks for this
  @allow_remote_access = true
  # Cable adapter configuration for the browser control WebSocket.
  # Defaults to the app's config/cable.yml (or the in-process "async"
  # adapter when there is none).
  @cable = nil
  @logger = nil
  @preferred_orm = :active_record
  @dev = false
  @client_url = "https://tidewave.ai"
  @team = {}
  @logger_middleware = nil
  @toolbar = true
end

Instance Attribute Details

#allow_remote_accessObject

Returns the value of attribute allow_remote_access.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def allow_remote_access
  @allow_remote_access
end

#cableObject

Returns the value of attribute cable.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def cable
  @cable
end

#client_urlObject

Returns the value of attribute client_url.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def client_url
  @client_url
end

#devObject

Returns the value of attribute dev.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def dev
  @dev
end

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def logger
  @logger
end

#logger_middlewareObject

Returns the value of attribute logger_middleware.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def logger_middleware
  @logger_middleware
end

#preferred_ormObject

Returns the value of attribute preferred_orm.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def preferred_orm
  @preferred_orm
end

#teamObject

Returns the value of attribute team.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def team
  @team
end

#toolbarObject

Returns the value of attribute toolbar.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def toolbar
  @toolbar
end