Class: Cline::GlobalState::AutoApproval::AutoApprovalSettings

Inherits:
Schema
  • Object
show all
Defined in:
lib/cline/global_state/auto_approval.rb

Overview

Auto approval configuration settings

Defined Under Namespace

Classes: AutoApprovalActions

Instance Attribute Summary

Attributes inherited from Schema

#extra_attributes

Public API collapse

Methods inherited from Schema

#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash

Instance Method Details

#actionsAutoApprovalActions

Returns Action toggles.

Returns:



39
# File 'lib/cline/global_state/auto_approval.rb', line 39

attribute :actions, AutoApprovalActions

#enable_notificationsBoolean

Returns Enable notifications.

Returns:

  • (Boolean)

    Enable notifications



54
# File 'lib/cline/global_state/auto_approval.rb', line 54

attribute :enable_notifications, :boolean

#enabledBoolean

Returns Auto approval enabled flag.

Returns:

  • (Boolean)

    Auto approval enabled flag



42
# File 'lib/cline/global_state/auto_approval.rb', line 42

attribute :enabled, :boolean

#favoritesArray<String>

Returns Favorite approval entries.

Returns:

  • (Array<String>)

    Favorite approval entries



48
# File 'lib/cline/global_state/auto_approval.rb', line 48

attribute :favorites, Utils::Schema.collection(:string)

#max_requestsInteger

Returns Maximum allowed requests.

Returns:

  • (Integer)

    Maximum allowed requests



51
# File 'lib/cline/global_state/auto_approval.rb', line 51

attribute :max_requests, :integer

#versionInteger

Returns Configuration version.

Returns:

  • (Integer)

    Configuration version



45
# File 'lib/cline/global_state/auto_approval.rb', line 45

attribute :version, :integer