Class: Akamaized::Config
- Inherits:
-
Object
- Object
- Akamaized::Config
- Defined in:
- lib/akamaized/connection.rb
Instance Attribute Summary collapse
-
#base_dir ⇒ Object
Returns the value of attribute base_dir.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(opts = {}) ⇒ Config
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/akamaized/connection.rb', line 9 def initialize(opts = {}) opts = { :username => "", :password => "", :host => "", :base_dir => "" }.merge(opts) self.username = opts[:username] self.password = opts[:password] self.host = opts[:host] self.base_dir = opts[:base_dir] end |
Instance Attribute Details
#base_dir ⇒ Object
Returns the value of attribute base_dir.
7 8 9 |
# File 'lib/akamaized/connection.rb', line 7 def base_dir @base_dir end |
#host ⇒ Object
Returns the value of attribute host.
7 8 9 |
# File 'lib/akamaized/connection.rb', line 7 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/akamaized/connection.rb', line 7 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'lib/akamaized/connection.rb', line 7 def username @username end |