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

Returns a new instance of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of resources



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

def resources
  @resources
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of token



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

def token
  @token
end