Class: Mailarchiva::Base
- Inherits:
-
Object
- Object
- Mailarchiva::Base
- Defined in:
- lib/mailarchiva/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#client ⇒ Object
Returns the value of attribute client.
-
#host ⇒ Object
Returns the value of attribute host.
-
#pass ⇒ Object
Returns the value of attribute pass.
-
#port ⇒ Object
Returns the value of attribute port.
-
#ssl ⇒ Object
Returns the value of attribute ssl.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(args) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(args) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 |
# File 'lib/mailarchiva/base.rb', line 10 def initialize(args) args.each do |k,v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
8 9 10 |
# File 'lib/mailarchiva/base.rb', line 8 def app_name @app_name end |
#client ⇒ Object
Returns the value of attribute client.
8 9 10 |
# File 'lib/mailarchiva/base.rb', line 8 def client @client end |
#host ⇒ Object
Returns the value of attribute host.
8 9 10 |
# File 'lib/mailarchiva/base.rb', line 8 def host @host end |
#pass ⇒ Object
Returns the value of attribute pass.
8 9 10 |
# File 'lib/mailarchiva/base.rb', line 8 def pass @pass end |
#port ⇒ Object
Returns the value of attribute port.
8 9 10 |
# File 'lib/mailarchiva/base.rb', line 8 def port @port end |
#ssl ⇒ Object
Returns the value of attribute ssl.
8 9 10 |
# File 'lib/mailarchiva/base.rb', line 8 def ssl @ssl end |
#user ⇒ Object
Returns the value of attribute user.
8 9 10 |
# File 'lib/mailarchiva/base.rb', line 8 def user @user end |