Sha256: 4eec66ffeaba8bc83d835827c7ce69d703babefc25959ac095a8a013a4b4b718

Contents?: true

Size: 552 Bytes

Versions: 10

Compression:

Stored size: 552 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 [] var
      @vals[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

10 entries across 10 versions & 1 rubygems

Version Path
hydra-access-controls-7.0.0.pre2 lib/hydra/access_controls/permission.rb
hydra-access-controls-7.0.0.pre1 lib/hydra/access_controls/permission.rb
hydra-access-controls-6.4.1 lib/hydra/access_controls/permission.rb
hydra-access-controls-6.4.0 lib/hydra/access_controls/permission.rb
hydra-access-controls-6.4.0.rc5 lib/hydra/access_controls/permission.rb
hydra-access-controls-6.4.0.rc4 lib/hydra/access_controls/permission.rb
hydra-access-controls-6.4.0.rc3 lib/hydra/access_controls/permission.rb
hydra-access-controls-6.4.0.rc2 lib/hydra/access_controls/permission.rb
hydra-access-controls-6.4.0.rc1 lib/hydra/access_controls/permission.rb
hydra-access-controls-6.4.0.pre2 lib/hydra/access_controls/permission.rb