Class: Cyrax::Wrapper
- Inherits:
-
Object
- Object
- Cyrax::Wrapper
- Includes:
- HasActiveLogger::Mixin
- Defined in:
- lib/cyrax/wrapper.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#accessor ⇒ Object
Returns the value of attribute accessor.
-
#options ⇒ Object
Returns the value of attribute options.
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource = nil, options = {}) ⇒ Wrapper
constructor
A new instance of Wrapper.
Constructor Details
#initialize(resource = nil, options = {}) ⇒ Wrapper
Returns a new instance of Wrapper.
7 8 9 10 11 |
# File 'lib/cyrax/wrapper.rb', line 7 def initialize(resource = nil, = {}) @resource = resource @options = @accessor = [:as] end |
Instance Attribute Details
#accessor ⇒ Object
Returns the value of attribute accessor.
5 6 7 |
# File 'lib/cyrax/wrapper.rb', line 5 def accessor @accessor end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/cyrax/wrapper.rb', line 4 def @options end |
#resource ⇒ Object
Returns the value of attribute resource.
3 4 5 |
# File 'lib/cyrax/wrapper.rb', line 3 def resource @resource end |