Class: Hecks::QuerySpecification::Common::AuthorizationSpec

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/query_specification/common/authorization_spec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#policyObject

Returns the value of attribute policy

Returns:

  • (Object)

    the current value of policy



4
5
6
# File 'lib/hecks/query_specification/common/authorization_spec.rb', line 4

def policy
  @policy
end

#tenantObject

Returns the value of attribute tenant

Returns:

  • (Object)

    the current value of tenant



4
5
6
# File 'lib/hecks/query_specification/common/authorization_spec.rb', line 4

def tenant
  @tenant
end

Instance Method Details

#to_hObject



5
# File 'lib/hecks/query_specification/common/authorization_spec.rb', line 5

def to_h = { policy: policy.to_s, tenant: tenant && tenant.to_s }