Class: TurboDesktop::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
12
# File 'lib/turbo_desktop/configuration.rb', line 5

def initialize
  @path_configuration = default_path_configuration
  @user_agent_pattern = /Turbo Desktop/
  @inspector_enabled = false
  # Where the engine is mounted; the inspector meta tag advertises assets
  # under this prefix. Override if you mount the engine elsewhere.
  @inspector_mount_path = "/turbo-desktop"
end

Instance Attribute Details

#inspector_enabledObject

Returns the value of attribute inspector_enabled.



3
4
5
# File 'lib/turbo_desktop/configuration.rb', line 3

def inspector_enabled
  @inspector_enabled
end

#inspector_mount_pathObject

Returns the value of attribute inspector_mount_path.



3
4
5
# File 'lib/turbo_desktop/configuration.rb', line 3

def inspector_mount_path
  @inspector_mount_path
end

#path_configurationObject

Returns the value of attribute path_configuration.



3
4
5
# File 'lib/turbo_desktop/configuration.rb', line 3

def path_configuration
  @path_configuration
end

#user_agent_patternObject

Returns the value of attribute user_agent_pattern.



3
4
5
# File 'lib/turbo_desktop/configuration.rb', line 3

def user_agent_pattern
  @user_agent_pattern
end

Instance Method Details

#path_configuration_jsonObject



14
15
16
# File 'lib/turbo_desktop/configuration.rb', line 14

def path_configuration_json
  @path_configuration.to_json
end