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.



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

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



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def all
  @all
end

#api_versionObject

Returns the value of attribute api_version

Returns:

  • (Object)

    the current value of api_version



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def api_version
  @api_version
end

#debugObject

Returns the value of attribute debug

Returns:

  • (Object)

    the current value of debug



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def debug
  @debug
end

#dry_runObject

Returns the value of attribute dry_run

Returns:

  • (Object)

    the current value of dry_run



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def dry_run
  @dry_run
end

#host_urlObject

Returns the value of attribute host_url

Returns:

  • (Object)

    the current value of host_url



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def host_url
  @host_url
end

#policies_filesObject

Returns the value of attribute policies_files

Returns:

  • (Object)

    the current value of policies_files



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def policies_files
  @policies_files
end

#require_filesObject

Returns the value of attribute require_files

Returns:

  • (Object)

    the current value of require_files



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def require_files
  @require_files
end

#resource_referenceObject

Returns the value of attribute resource_reference

Returns:

  • (Object)

    the current value of resource_reference



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def resource_reference
  @resource_reference
end

#resourcesObject

Returns the value of attribute resources

Returns:

  • (Object)

    the current value of resources



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def resources
  @resources
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def source
  @source
end

#source_idObject

Returns the value of attribute source_id

Returns:

  • (Object)

    the current value of source_id



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def source_id
  @source_id
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



5
6
7
# File 'lib/gitlab/triage/options.rb', line 5

def token
  @token
end