Class: SnapshotInspector::Configuration
- Inherits:
-
Object
- Object
- SnapshotInspector::Configuration
- Defined in:
- lib/snapshot_inspector.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#importmap ⇒ Object
Returns the value of attribute importmap.
-
#route_path ⇒ Object
Returns the value of attribute route_path.
-
#snapshot_taking_enabled ⇒ Object
Returns the value of attribute snapshot_taking_enabled.
-
#storage_directory ⇒ Object
Returns the value of attribute storage_directory.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
23 24 25 26 27 28 29 |
# File 'lib/snapshot_inspector.rb', line 23 def initialize @importmap = Importmap::Map.new @snapshot_taking_enabled = ENV.fetch("TAKE_SNAPSHOTS", nil) == "1" @storage_directory = nil @host = "http://localhost:3000" @route_path = "/rails/snapshots" end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
21 22 23 |
# File 'lib/snapshot_inspector.rb', line 21 def host @host end |
#importmap ⇒ Object
Returns the value of attribute importmap.
21 22 23 |
# File 'lib/snapshot_inspector.rb', line 21 def importmap @importmap end |
#route_path ⇒ Object
Returns the value of attribute route_path.
21 22 23 |
# File 'lib/snapshot_inspector.rb', line 21 def route_path @route_path end |
#snapshot_taking_enabled ⇒ Object
Returns the value of attribute snapshot_taking_enabled.
21 22 23 |
# File 'lib/snapshot_inspector.rb', line 21 def snapshot_taking_enabled @snapshot_taking_enabled end |
#storage_directory ⇒ Object
Returns the value of attribute storage_directory.
21 22 23 |
# File 'lib/snapshot_inspector.rb', line 21 def storage_directory @storage_directory end |