Class: Hecks::QuerySpecification::Common::AuthorizationSpec
- Inherits:
-
Struct
- Object
- Struct
- Hecks::QuerySpecification::Common::AuthorizationSpec
- Defined in:
- lib/hecks/query_specification/common/authorization_spec.rb
Instance Attribute Summary collapse
-
#policy ⇒ Object
Returns the value of attribute policy.
-
#tenant ⇒ Object
Returns the value of attribute tenant.
Instance Method Summary collapse
Instance Attribute Details
#policy ⇒ Object
Returns the value of attribute policy
4 5 6 |
# File 'lib/hecks/query_specification/common/authorization_spec.rb', line 4 def policy @policy end |
#tenant ⇒ Object
Returns the value of attribute tenant
4 5 6 |
# File 'lib/hecks/query_specification/common/authorization_spec.rb', line 4 def tenant @tenant end |
Instance Method Details
#to_h ⇒ Object
5 |
# File 'lib/hecks/query_specification/common/authorization_spec.rb', line 5 def to_h = { policy: policy.to_s, tenant: tenant && tenant.to_s } |