class Casbin::Model::Assertion

Attributes

key[RW]
policy[RW]
rm[RW]
tokens[RW]
value[RW]

Public Class Methods

new(hash = {}) click to toggle source
# File lib/casbin-ruby/model/assertion.rb, line 10
def initialize(hash = {})
  @key = hash[:key].to_s
  @value = hash[:value].to_s
  @tokens = [*hash[:tokens]]
  @policy = [*hash[:policy]]
end

Public Instance Methods