Class: Packagecloud::Connection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scheme = "https", host = "packagecloud.io", port = "443") ⇒ Connection

Returns a new instance of Connection.



5
6
7
8
9
# File 'lib/packagecloud/connection.rb', line 5

def initialize(scheme="https", host="packagecloud.io", port="443")
  @scheme = scheme
  @host = host
  @port = port
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



3
4
5
# File 'lib/packagecloud/connection.rb', line 3

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



3
4
5
# File 'lib/packagecloud/connection.rb', line 3

def port
  @port
end

#schemeObject (readonly)

Returns the value of attribute scheme.



3
4
5
# File 'lib/packagecloud/connection.rb', line 3

def scheme
  @scheme
end