class TowerdataEmail::Config
Attributes
auto_accept_corrections[RW]
headers[RW]
only_validate_on_change[RW]
show_corrections[RW]
timeout[RW]
token[RW]
Public Class Methods
new(token = nil, timeout = 5, headers = { 'Content-Type' => 'application/json' } )
click to toggle source
TowerdataEmail::Config
must provide a valid API toke (set an environment variable to your credentials) token = ENV Arguments:
token: (String)
headers: (Hash)
# File lib/towerdata_email.rb, line 156 def initialize(token = nil, timeout = 5, headers = { 'Content-Type' => 'application/json' } ) @token = token @headers = headers @show_corrections = true @auto_accept_corrections = false @only_validate_on_change = false @timeout = timeout end