Class: Aptly::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/aptly/configuration.rb

Overview

Configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host: 'localhost', port: 80) ⇒ Configuration

Creates a new instance.

Parameters:

  • host (defaults to: 'localhost')

    see #host

  • port (defaults to: 80)

    see #port



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

#hostString

Returns host name to talk to.

Returns:

  • (String)

    host name to talk to



6
7
8
# File 'lib/aptly/configuration.rb', line 6

def host
  @host
end

#portInteger

Returns port to talk to host to on.

Returns:

  • (Integer)

    port to talk to host to on



10
11
12
# File 'lib/aptly/configuration.rb', line 10

def port
  @port
end