class Postal::Config
Attributes
host[W]
server_key[W]
Public Instance Methods
host()
click to toggle source
# File lib/postal/config.rb, line 4 def host @host || ENV['POSTAL_HOST'] || raise(Error, "Host has not been configured. Set it using the `Postal.configure` block or use `POSTAL_HOST` environment variable.") end
server_key()
click to toggle source
# File lib/postal/config.rb, line 9 def server_key @server_key || ENV['POSTAL_KEY'] || raise(Error, "Server key has not been configured. Set it using the `Postal.configure` block or use `POSTAL_KEY` environment variable.") end