Class: Senec::Local::Connection

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/senec/local/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host:, schema: 'http') ⇒ Connection

Returns a new instance of Connection.



9
10
11
# File 'lib/senec/local/connection.rb', line 9

def initialize(host:, schema: 'http')
  @url = "#{schema}://#{host}"
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



13
14
15
# File 'lib/senec/local/connection.rb', line 13

def url
  @url
end