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.
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
#all ⇒ Object
Returns the value of attribute all
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def all @all end |
#api_version ⇒ Object
Returns the value of attribute api_version
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def api_version @api_version end |
#debug ⇒ Object
Returns the value of attribute debug
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def debug @debug end |
#dry_run ⇒ Object
Returns the value of attribute dry_run
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def dry_run @dry_run end |
#host_url ⇒ Object
Returns the value of attribute host_url
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def host_url @host_url end |
#policies_files ⇒ Object
Returns the value of attribute policies_files
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def policies_files @policies_files end |
#require_files ⇒ Object
Returns the value of attribute require_files
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def require_files @require_files end |
#resource_reference ⇒ Object
Returns the value of attribute resource_reference
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def resource_reference @resource_reference end |
#resources ⇒ Object
Returns the value of attribute resources
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def resources @resources end |
#source ⇒ Object
Returns the value of attribute source
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def source @source end |
#source_id ⇒ Object
Returns the value of attribute source_id
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def source_id @source_id end |
#token ⇒ Object
Returns the value of attribute token
5 6 7 |
# File 'lib/gitlab/triage/options.rb', line 5 def token @token end |