class Ghit::HttpsGlobals

Attributes

author[R]
repository[R]
url[R]

Public Class Methods

new(remote) click to toggle source
# File lib/ghit/https_globals.rb, line 6
def initialize remote 
  @remote     = remote
  @url        = extract_url
  @author     = extract_author
  @repository = extract_repository_name
end

Private Instance Methods

extract_author() click to toggle source
# File lib/ghit/https_globals.rb, line 19
def extract_author
  @remote.split('/')[-2]
end
extract_repository_name() click to toggle source
# File lib/ghit/https_globals.rb, line 23
def extract_repository_name
  extract_url.split('/')[-1]
end
extract_url() click to toggle source
# File lib/ghit/https_globals.rb, line 15
def extract_url
  @remote.split[-2]
end