Class: SnapshotInspector::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#hostObject

Returns the value of attribute host.



21
22
23
# File 'lib/snapshot_inspector.rb', line 21

def host
  @host
end

#importmapObject

Returns the value of attribute importmap.



21
22
23
# File 'lib/snapshot_inspector.rb', line 21

def importmap
  @importmap
end

#route_pathObject

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_enabledObject

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_directoryObject

Returns the value of attribute storage_directory.



21
22
23
# File 'lib/snapshot_inspector.rb', line 21

def storage_directory
  @storage_directory
end