Class: ProtectedRefs::AccessLevelParams
- Inherits:
-
Object
- Object
- ProtectedRefs::AccessLevelParams
- Defined in:
- app/services/protected_refs/access_level_params.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #access_levels ⇒ Object
-
#initialize(type, params, with_defaults: true) ⇒ AccessLevelParams
constructor
A new instance of AccessLevelParams.
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
#params ⇒ Object (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 |
#type ⇒ Object (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_levels ⇒ Object
12 13 14 |
# File 'app/services/protected_refs/access_level_params.rb', line 12 def access_levels ce_style_access_level end |