Class: AccessSchema::Proxy
- Inherits:
-
Object
- Object
- AccessSchema::Proxy
- Defined in:
- lib/access_schema/proxy.rb
Instance Method Summary collapse
- #allow?(*args) ⇒ Boolean
-
#initialize(schema, options = {}) ⇒ Proxy
constructor
A new instance of Proxy.
- #require!(*args) ⇒ Object
- #roles ⇒ Object
- #with_options(options) ⇒ Object
Constructor Details
#initialize(schema, options = {}) ⇒ Proxy
Returns a new instance of Proxy.
4 5 6 7 |
# File 'lib/access_schema/proxy.rb', line 4 def initialize(schema, = {}) @schema = schema @options = end |
Instance Method Details
#allow?(*args) ⇒ Boolean
13 14 15 |
# File 'lib/access_schema/proxy.rb', line 13 def allow?(*args) @schema.allow?(*normalize_args(args)) end |
#require!(*args) ⇒ Object
17 18 19 |
# File 'lib/access_schema/proxy.rb', line 17 def require!(*args) @schema.require!(*normalize_args(args)) end |
#roles ⇒ Object
9 10 11 |
# File 'lib/access_schema/proxy.rb', line 9 def roles @schema.roles end |