Class: Ace::Git::ResolvedServer
- Inherits:
-
Data
- Object
- Data
- Ace::Git::ResolvedServer
- Defined in:
- lib/ace/git/resolved_server.rb
Overview
An exactly-resolved forge server identity.
Produced by ServerRegistry (by explicit name, by default resolution, or by remote URL matching). Carries the configured server name, the provider type that owns its behavior, and the configured base URL.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#to_h ⇒ Hash
Plain hash representation.
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
13 14 15 |
# File 'lib/ace/git/resolved_server.rb', line 13 def name @name end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider
13 14 15 |
# File 'lib/ace/git/resolved_server.rb', line 13 def provider @provider end |
#url ⇒ Object (readonly)
Returns the value of attribute url
13 14 15 |
# File 'lib/ace/git/resolved_server.rb', line 13 def url @url end |
Instance Method Details
#to_h ⇒ Hash
Returns Plain hash representation.
15 16 17 |
# File 'lib/ace/git/resolved_server.rb', line 15 def to_h {name: name, provider: provider, url: url} end |