Class: Akamaized::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/akamaized/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dirObject

Returns the value of attribute base_dir.



7
8
9
# File 'lib/akamaized/connection.rb', line 7

def base_dir
  @base_dir
end

#hostObject

Returns the value of attribute host.



7
8
9
# File 'lib/akamaized/connection.rb', line 7

def host
  @host
end

#passwordObject

Returns the value of attribute password.



7
8
9
# File 'lib/akamaized/connection.rb', line 7

def password
  @password
end

#usernameObject

Returns the value of attribute username.



7
8
9
# File 'lib/akamaized/connection.rb', line 7

def username
  @username
end