Class: Belt::Configuration

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

Overview

Runtime configuration for Belt apps (set in lambda/config/environment.rb).

Belt.configure do |config|
config.default_format = :json  # or :html
end

Note: infrastructure//belt.rb uses a separate sandboxed DSL for CLI deploy/backup settings — it does not share this object.

Constant Summary collapse

VALID_FORMATS =
%i[json html].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



15
16
17
# File 'lib/belt/configuration.rb', line 15

def initialize
  @default_format = :json
end

Instance Attribute Details

#default_formatObject

Returns the value of attribute default_format.



19
20
21
# File 'lib/belt/configuration.rb', line 19

def default_format
  @default_format
end