class GrowViral::Warehouse::Configuration
Attributes
env[R]
Public Class Methods
new(env)
click to toggle source
# File lib/warehouse/configuration.rb, line 6 def initialize(env) @env = env end
Public Instance Methods
host()
click to toggle source
# File lib/warehouse/configuration.rb, line 10 def host case env.to_sym when :test when :development ENV["GROWVIRAL_WAREHOUSE_HOST"] || "http://localhost:3001" when :production ENV["GROWVIRAL_WAREHOUSE_HOST"] end end