Class: ProtectedRefs::AccessLevelParams

Inherits:
Object
  • Object
show all
Defined in:
app/services/protected_refs/access_level_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, params, with_defaults: true) ⇒ AccessLevelParams

Returns a new instance of AccessLevelParams.



7
8
9
10
# File 'app/services/protected_refs/access_level_params.rb', line 7

def initialize(type, params, with_defaults: true)
  @type = type
  @params = with_defaults ? params_with_default(params) : params
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



5
6
7
# File 'app/services/protected_refs/access_level_params.rb', line 5

def params
  @params
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'app/services/protected_refs/access_level_params.rb', line 5

def type
  @type
end

Instance Method Details

#access_levelsObject



12
13
14
# File 'app/services/protected_refs/access_level_params.rb', line 12

def access_levels
  ce_style_access_level
end