Class: Git::Remote::Parser::Result
- Inherits:
-
Object
- Object
- Git::Remote::Parser::Result
- Defined in:
- lib/git/remote/parser.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#html_url ⇒ Object
readonly
Returns the value of attribute html_url.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(protocol, username, host, owner, repo, html_url) ⇒ Result
constructor
A new instance of Result.
- #to_h ⇒ Object
Constructor Details
#initialize(protocol, username, host, owner, repo, html_url) ⇒ Result
Returns a new instance of Result.
9 10 11 12 13 14 15 16 |
# File 'lib/git/remote/parser.rb', line 9 def initialize(protocol, username, host, owner, repo, html_url) @protocol = protocol @username = username @host = host @owner = owner @repo = repo @html_url = html_url end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
7 8 9 |
# File 'lib/git/remote/parser.rb', line 7 def host @host end |
#html_url ⇒ Object (readonly)
Returns the value of attribute html_url.
7 8 9 |
# File 'lib/git/remote/parser.rb', line 7 def html_url @html_url end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
7 8 9 |
# File 'lib/git/remote/parser.rb', line 7 def owner @owner end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
7 8 9 |
# File 'lib/git/remote/parser.rb', line 7 def protocol @protocol end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
7 8 9 |
# File 'lib/git/remote/parser.rb', line 7 def repo @repo end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
7 8 9 |
# File 'lib/git/remote/parser.rb', line 7 def username @username end |
Instance Method Details
#to_h ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/git/remote/parser.rb', line 18 def to_h { protocol: protocol, username: username, host: host, owner: owner, repo: repo, html_url: html_url, } end |