Class: Adobe::Aem::Api
- Inherits:
-
Object
- Object
- Adobe::Aem::Api
- Defined in:
- lib/adobe/aem/api.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Api
constructor
A new instance of Api.
Constructor Details
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
9 10 11 |
# File 'lib/adobe/aem/api.rb', line 9 def context @context end |
Class Method Details
.proxy(name, klass) ⇒ Object
12 13 14 15 16 |
# File 'lib/adobe/aem/api.rb', line 12 def proxy(name, klass) define_method name do klass.new(@context) end end |