Class: Mailarchiva::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mailarchiva/base.rb

Direct Known Subclasses

RestClient, SoapClient

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

Returns the value of attribute app_name.



8
9
10
# File 'lib/mailarchiva/base.rb', line 8

def app_name
  @app_name
end

#clientObject

Returns the value of attribute client.



8
9
10
# File 'lib/mailarchiva/base.rb', line 8

def client
  @client
end

#hostObject

Returns the value of attribute host.



8
9
10
# File 'lib/mailarchiva/base.rb', line 8

def host
  @host
end

#passObject

Returns the value of attribute pass.



8
9
10
# File 'lib/mailarchiva/base.rb', line 8

def pass
  @pass
end

#portObject

Returns the value of attribute port.



8
9
10
# File 'lib/mailarchiva/base.rb', line 8

def port
  @port
end

#sslObject

Returns the value of attribute ssl.



8
9
10
# File 'lib/mailarchiva/base.rb', line 8

def ssl
  @ssl
end

#userObject

Returns the value of attribute user.



8
9
10
# File 'lib/mailarchiva/base.rb', line 8

def user
  @user
end