Class: GitSnatch::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/git_snatch/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



18
19
20
21
22
23
# File 'lib/git_snatch/configuration.rb', line 18

def initialize
  self.endpoint   = 'https://raw.github.com'
  self.auth_types = :basic
  self.username   = nil
  self.password   = nil
end

Instance Attribute Details

#auth_typesObject

Returns the value of attribute auth_types.



16
17
18
# File 'lib/git_snatch/configuration.rb', line 16

def auth_types
  @auth_types
end

#endpointObject

Returns the value of attribute endpoint.



16
17
18
# File 'lib/git_snatch/configuration.rb', line 16

def endpoint
  @endpoint
end

#passwordObject

Returns the value of attribute password.



16
17
18
# File 'lib/git_snatch/configuration.rb', line 16

def password
  @password
end

#usernameObject

Returns the value of attribute username.



16
17
18
# File 'lib/git_snatch/configuration.rb', line 16

def username
  @username
end