Class: Gitlab::Triage::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/triage/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Options



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/gitlab/triage/options.rb', line 17

def initialize(*args)
  super

  # Defaults
  self.host_url ||= 'https://gitlab.com'
  self.api_version ||= 'v4'
  self.all ||= false
  self.source ||= 'projects'
  self.require_files ||= []
  self.policies_files ||= Set.new
end

Instance Attribute Details

#allObject

Returns the value of attribute all



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def all
  @all
end

#api_versionObject

Returns the value of attribute api_version



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def api_version
  @api_version
end

#debugObject

Returns the value of attribute debug



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def debug
  @debug
end

#dry_runObject

Returns the value of attribute dry_run



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def dry_run
  @dry_run
end

#host_urlObject

Returns the value of attribute host_url



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def host_url
  @host_url
end

#policies_filesObject

Returns the value of attribute policies_files



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def policies_files
  @policies_files
end

#require_filesObject

Returns the value of attribute require_files



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def require_files
  @require_files
end

#resource_referenceObject

Returns the value of attribute resource_reference



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def resource_reference
  @resource_reference
end

#resourcesObject

Returns the value of attribute resources



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def resources
  @resources
end

#sourceObject

Returns the value of attribute source



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def source
  @source
end

#source_idObject

Returns the value of attribute source_id



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def source_id
  @source_id
end

#tokenObject

Returns the value of attribute token



3
4
5
# File 'lib/gitlab/triage/options.rb', line 3

def token
  @token
end