Class: Boxd::Configuration

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

Overview

Process-wide defaults. Useful for Rails initializers and scripts.

Boxd.configure do |c|
  c.api_key     = ENV["BOXD_API_KEY"]
  c.environment = "production"   # or "staging"
end

Instance Attribute Summary collapse

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



38
39
40
# File 'lib/boxd/compute.rb', line 38

def api_key
  @api_key
end

#environmentObject

Returns the value of attribute environment.



38
39
40
# File 'lib/boxd/compute.rb', line 38

def environment
  @environment
end