Class: Cardiac::OperationBuilder
- Inherits:
-
ResourceBuilder
- Object
- Proxy
- ResourceBuilder
- Cardiac::OperationBuilder
- Defined in:
- lib/cardiac/operation_builder.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#klass ⇒ Object
writeonly
Sets the attribute klass.
Method Summary
Methods inherited from ResourceBuilder
#__extension_module__, #__extensions__, #__subresource__, #extending, #initialize, #to_resource
Methods inherited from Proxy
Constructor Details
This class inherits a constructor from Cardiac::ResourceBuilder
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object (private)
Overridden to respond to HTTP verbs.
27 28 29 30 31 32 33 34 |
# File 'lib/cardiac/operation_builder.rb', line 27 def method_missing name, *args, &block name = @base.send(:build_method) if name == :call if http_method_allowed? name call!(name, *args, &block) else super end end |
Instance Attribute Details
#klass=(value) ⇒ Object (writeonly)
Sets the attribute klass
3 4 5 |
# File 'lib/cardiac/operation_builder.rb', line 3 def klass=(value) @klass = value end |