Class: OpenTox::Policy::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/policy.rb

Overview

policyrule sets the permission for REST actions (GET, POST, PUT, DELETE) of a specific URI to allow/deny/nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, uri) ⇒ Rule


275
276
277
278
# File 'lib/policy.rb', line 275

def initialize(name, uri)
  @name = name
  @uri = uri
end

Instance Attribute Details

#deleteObject

Returns the value of attribute delete


273
274
275
# File 'lib/policy.rb', line 273

def delete
  @delete
end

#getObject

Returns the value of attribute get


273
274
275
# File 'lib/policy.rb', line 273

def get
  @get
end

#nameObject

Returns the value of attribute name


273
274
275
# File 'lib/policy.rb', line 273

def name
  @name
end

#postObject

Returns the value of attribute post


273
274
275
# File 'lib/policy.rb', line 273

def post
  @post
end

#putObject

Returns the value of attribute put


273
274
275
# File 'lib/policy.rb', line 273

def put
  @put
end

#readObject

read getter method


305
306
307
# File 'lib/policy.rb', line 305

def read
  @read
end

#readwriteObject

readwrite getter method


310
311
312
# File 'lib/policy.rb', line 310

def readwrite
  @readwrite
end

#uriObject

Returns the value of attribute uri


273
274
275
# File 'lib/policy.rb', line 273

def uri
  @uri
end