Class: FunApi::SimpleDependency
- Inherits:
-
Object
- Object
- FunApi::SimpleDependency
- Defined in:
- lib/funapi/dependency_wrapper.rb
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
- #call ⇒ Object
- #cleanup ⇒ Object
-
#initialize(resource) ⇒ SimpleDependency
constructor
A new instance of SimpleDependency.
Constructor Details
#initialize(resource) ⇒ SimpleDependency
Returns a new instance of SimpleDependency.
7 8 9 |
# File 'lib/funapi/dependency_wrapper.rb', line 7 def initialize(resource) @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
5 6 7 |
# File 'lib/funapi/dependency_wrapper.rb', line 5 def resource @resource end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/funapi/dependency_wrapper.rb', line 11 def call @resource end |
#cleanup ⇒ Object
15 16 |
# File 'lib/funapi/dependency_wrapper.rb', line 15 def cleanup end |