Class: Senec::Local::Connection
- Inherits:
-
Object
- Object
- Senec::Local::Connection
- Extended by:
- Forwardable
- Defined in:
- lib/senec/local/connection.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(host:, schema: 'http') ⇒ Connection
constructor
A new instance of Connection.
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
#url ⇒ Object (readonly)
Returns the value of attribute url.
13 14 15 |
# File 'lib/senec/local/connection.rb', line 13 def url @url end |