Class: Emarsys::Broadcast::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/emarsys/broadcast/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



25
26
27
28
29
30
31
32
33
# File 'lib/emarsys/broadcast/configuration.rb', line 25

def initialize
  @sftp_host = 'e3.emarsys.net'
  @sftp_port = 22
  @api_host = 'e3.emarsys.net'
  @api_base_path = '/bmapi/v2'
  @api_port = 80
  @api_timeout = 600 #10 minutes
  @import_delay_hours = 1
end

Instance Attribute Details

#api_base_pathObject

Returns the value of attribute api_base_path.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def api_base_path
  @api_base_path
end

#api_hostObject

Returns the value of attribute api_host.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def api_host
  @api_host
end

#api_passwordObject

Returns the value of attribute api_password.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def api_password
  @api_password
end

#api_portObject

Returns the value of attribute api_port.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def api_port
  @api_port
end

#api_timeoutObject

Returns the value of attribute api_timeout.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def api_timeout
  @api_timeout
end

#api_userObject

Returns the value of attribute api_user.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def api_user
  @api_user
end

#import_delay_hoursObject

Returns the value of attribute import_delay_hours.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def import_delay_hours
  @import_delay_hours
end

#recipients_pathObject

Returns the value of attribute recipients_path.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def recipients_path
  @recipients_path
end

#senderObject

Returns the value of attribute sender.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def sender
  @sender
end

#sender_domainObject

Returns the value of attribute sender_domain.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def sender_domain
  @sender_domain
end

#sftp_hostObject

Returns the value of attribute sftp_host.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def sftp_host
  @sftp_host
end

#sftp_passwordObject

Returns the value of attribute sftp_password.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def sftp_password
  @sftp_password
end

#sftp_portObject

Returns the value of attribute sftp_port.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def sftp_port
  @sftp_port
end

#sftp_userObject

Returns the value of attribute sftp_user.



7
8
9
# File 'lib/emarsys/broadcast/configuration.rb', line 7

def sftp_user
  @sftp_user
end