Class: Tidewave::Configuration
- Inherits:
-
Object
- Object
- Tidewave::Configuration
- Defined in:
- lib/tidewave/configuration.rb
Instance Attribute Summary collapse
-
#allow_remote_access ⇒ Object
Returns the value of attribute allow_remote_access.
-
#cable ⇒ Object
Returns the value of attribute cable.
-
#client_url ⇒ Object
Returns the value of attribute client_url.
-
#dev ⇒ Object
Returns the value of attribute dev.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#logger_middleware ⇒ Object
Returns the value of attribute logger_middleware.
-
#preferred_orm ⇒ Object
Returns the value of attribute preferred_orm.
-
#team ⇒ Object
Returns the value of attribute team.
-
#toolbar ⇒ Object
Returns the value of attribute toolbar.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_access ⇒ Object
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 |
#cable ⇒ Object
Returns the value of attribute cable.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def cable @cable end |
#client_url ⇒ Object
Returns the value of attribute client_url.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def client_url @client_url end |
#dev ⇒ Object
Returns the value of attribute dev.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def dev @dev end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def logger @logger end |
#logger_middleware ⇒ Object
Returns the value of attribute logger_middleware.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def logger_middleware @logger_middleware end |
#preferred_orm ⇒ Object
Returns the value of attribute preferred_orm.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def preferred_orm @preferred_orm end |
#team ⇒ Object
Returns the value of attribute team.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def team @team end |
#toolbar ⇒ Object
Returns the value of attribute toolbar.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def @toolbar end |