Class: Dsx::Dml::AccessLevelOp

Inherits:
CardRelatedOp show all
Defined in:
lib/dsx/operation.rb

Instance Method Summary collapse

Methods inherited from CardRelatedOp

#initialize

Methods inherited from OpTemplate

#initialize

Constructor Details

This class inherits a constructor from Dsx::Dml::CardRelatedOp

Instance Method Details

#+(values) ⇒ Object



123
124
125
126
127
128
129
# File 'lib/dsx/operation.rb', line 123

def + (values)
  values.each do |level|
    @table.add_acl(level)
  end
  @table.write
  @op
end

#-(values) ⇒ Object



131
132
133
134
135
136
137
# File 'lib/dsx/operation.rb', line 131

def - (values)
  values.each do |level|
    @table.del_acl(level)
  end
  @table.write
  @op
end

#resetObject



139
140
141
142
143
# File 'lib/dsx/operation.rb', line 139

def reset
  @table.clear_all_acl
  @table.write
  @op
end