Class: Instapusher::RepoOwnerIdentifierService

Inherits:
Object
  • Object
show all
Defined in:
lib/instapusher/git.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#stringObject (readonly)

Returns the value of attribute string.



5
6
7
# File 'lib/instapusher/git.rb', line 5

def string
  @string
end

Instance Method Details

#processObject



11
12
13
# File 'lib/instapusher/git.rb', line 11

def process
  string.include?('[email protected]') ? handle_ssh_version : handle_https_version
end