Class: Aptly::Configuration
- Inherits:
-
Object
- Object
- Aptly::Configuration
- Defined in:
- lib/aptly/configuration.rb
Overview
Configuration.
Instance Attribute Summary collapse
-
#host ⇒ String
Host name to talk to.
-
#port ⇒ Integer
Port to talk to host to on.
Instance Method Summary collapse
-
#initialize(host: 'localhost', port: 80) ⇒ Configuration
constructor
Creates a new instance.
Constructor Details
#initialize(host: 'localhost', port: 80) ⇒ Configuration
Creates a new instance.
15 16 17 18 |
# File 'lib/aptly/configuration.rb', line 15 def initialize(host: 'localhost', port: 80) @host = host @port = port end |
Instance Attribute Details
#host ⇒ String
Returns host name to talk to.
6 7 8 |
# File 'lib/aptly/configuration.rb', line 6 def host @host end |
#port ⇒ Integer
Returns port to talk to host to on.
10 11 12 |
# File 'lib/aptly/configuration.rb', line 10 def port @port end |