Class: App42::Email::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/email/Email.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(email) ⇒ Configuration

This is a constructor that takes no parameter



34
35
36
# File 'lib/email/Email.rb', line 34

def initialize(email)
  email.configList.push(self)
end

Instance Attribute Details

#emailIdObject

Returns the value of attribute emailId.



25
26
27
# File 'lib/email/Email.rb', line 25

def emailId
  @emailId
end

#hostObject

Returns the value of attribute host.



25
26
27
# File 'lib/email/Email.rb', line 25

def host
  @host
end

#portObject

Returns the value of attribute port.



25
26
27
# File 'lib/email/Email.rb', line 25

def port
  @port
end

#sslObject

Returns the value of attribute ssl.



25
26
27
# File 'lib/email/Email.rb', line 25

def ssl
  @ssl
end

Instance Method Details

#to_sObject

Returns the Cart Response in JSON format.

Returns:

  • the response in JSON format.



45
46
47
# File 'lib/email/Email.rb', line 45

def to_s
  return "Email : #{@emailId}" + "Host : #{@host}" + "port : #{@port}" + "ssl : #{@ssl}";
end