Sha256: 3cd21cf604a8f9a9f3c93dae14e590e729291afb1f2e130e507d20ed0eef22d5
Contents?: true
Size: 592 Bytes
Versions: 5
Compression:
Stored size: 592 Bytes
Contents
module Hydra::AccessControls class Permission def initialize(args) @vals = {name: args[:name], access: args[:access], type: args[:type]} end def persisted? false end def to_hash @vals end def [] var to_hash[var] end def name self[:name] end def access self[:access] end def type self[:type] end def _destroy false end def == other other.is_a?(Permission) && self.name == other.name && self.type == other.type && self.access == other.access end end end
Version data entries
5 entries across 5 versions & 1 rubygems