Class: Stytch::CachedOrgPolicy
- Inherits:
-
Object
- Object
- Stytch::CachedOrgPolicy
- Defined in:
- lib/stytch/rbac_local.rb
Instance Attribute Summary collapse
-
#last_update ⇒ Object
readonly
Returns the value of attribute last_update.
-
#org_policy ⇒ Object
readonly
Returns the value of attribute org_policy.
Instance Method Summary collapse
-
#initialize(org_policy:) ⇒ CachedOrgPolicy
constructor
A new instance of CachedOrgPolicy.
Constructor Details
#initialize(org_policy:) ⇒ CachedOrgPolicy
Returns a new instance of CachedOrgPolicy.
138 139 140 141 |
# File 'lib/stytch/rbac_local.rb', line 138 def initialize(org_policy:) @org_policy = org_policy['org_policy'] @last_update = Time.now.to_i end |
Instance Attribute Details
#last_update ⇒ Object (readonly)
Returns the value of attribute last_update.
143 144 145 |
# File 'lib/stytch/rbac_local.rb', line 143 def last_update @last_update end |
#org_policy ⇒ Object (readonly)
Returns the value of attribute org_policy.
143 144 145 |
# File 'lib/stytch/rbac_local.rb', line 143 def org_policy @org_policy end |