class Truemail::Client::Configuration
Constants
- ArgumentError
- DEFAULT_PORT
- Error
Attributes
host[R]
port[R]
secure_connection[RW]
token[R]
Public Class Methods
new(&block)
click to toggle source
# File lib/truemail/client/configuration.rb, line 18 def initialize(&block) @secure_connection = false @port = Truemail::Client::Configuration::DEFAULT_PORT tap(&block) if block end
Public Instance Methods
complete?()
click to toggle source
# File lib/truemail/client/configuration.rb, line 35 def complete? !!host && !!token end
Private Instance Methods
raise_unless(argument_context, argument_name, condition)
click to toggle source
# File lib/truemail/client/configuration.rb, line 41 def raise_unless(argument_context, argument_name, condition) raise Truemail::Client::Configuration::ArgumentError.new(argument_context, argument_name) unless condition end