Class: Instapusher::RepoOwnerIdentifierService
- Inherits:
-
Object
- Object
- Instapusher::RepoOwnerIdentifierService
- Defined in:
- lib/instapusher/git.rb
Instance Attribute Summary collapse
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(string) ⇒ RepoOwnerIdentifierService
constructor
A new instance of RepoOwnerIdentifierService.
- #process ⇒ Object
Constructor Details
#initialize(string) ⇒ RepoOwnerIdentifierService
Returns a new instance of RepoOwnerIdentifierService.
7 8 9 |
# File 'lib/instapusher/git.rb', line 7 def initialize string @string = string end |
Instance Attribute Details
#string ⇒ Object (readonly)
Returns the value of attribute string.
5 6 7 |
# File 'lib/instapusher/git.rb', line 5 def string @string end |
Instance Method Details
#process ⇒ Object
11 12 13 |
# File 'lib/instapusher/git.rb', line 11 def process string.include?('[email protected]') ? handle_ssh_version : handle_https_version end |