Class: Gitlab::Triage::Options
- Inherits:
-
Struct
- Object
- Struct
- Gitlab::Triage::Options
- Defined in:
- lib/gitlab/triage/options.rb
Instance Attribute Summary collapse
-
#all ⇒ Object
Returns the value of attribute all.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#host_url ⇒ Object
Returns the value of attribute host_url.
-
#policies_files ⇒ Object
Returns the value of attribute policies_files.
-
#require_files ⇒ Object
Returns the value of attribute require_files.
-
#resource_reference ⇒ Object
Returns the value of attribute resource_reference.
-
#resources ⇒ Object
Returns the value of attribute resources.
-
#source ⇒ Object
Returns the value of attribute source.
-
#source_id ⇒ Object
Returns the value of attribute source_id.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Options
constructor
A new instance of Options.
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
#all ⇒ Object
Returns the value of attribute all
3 4 5 |
# File 'lib/gitlab/triage/options.rb', line 3 def all @all end |
#api_version ⇒ Object
Returns the value of attribute api_version
3 4 5 |
# File 'lib/gitlab/triage/options.rb', line 3 def api_version @api_version end |
#debug ⇒ Object
Returns the value of attribute debug
3 4 5 |
# File 'lib/gitlab/triage/options.rb', line 3 def debug @debug end |
#dry_run ⇒ Object
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_url ⇒ Object
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_files ⇒ Object
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_files ⇒ Object
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_reference ⇒ Object
Returns the value of attribute resource_reference
3 4 5 |
# File 'lib/gitlab/triage/options.rb', line 3 def resource_reference @resource_reference end |
#resources ⇒ Object
Returns the value of attribute resources
3 4 5 |
# File 'lib/gitlab/triage/options.rb', line 3 def resources @resources end |
#source ⇒ Object
Returns the value of attribute source
3 4 5 |
# File 'lib/gitlab/triage/options.rb', line 3 def source @source end |
#source_id ⇒ Object
Returns the value of attribute source_id
3 4 5 |
# File 'lib/gitlab/triage/options.rb', line 3 def source_id @source_id end |
#token ⇒ Object
Returns the value of attribute token
3 4 5 |
# File 'lib/gitlab/triage/options.rb', line 3 def token @token end |