Class: Cardiac::OperationBuilder

Inherits:
ResourceBuilder show all
Defined in:
lib/cardiac/operation_builder.rb

Direct Known Subclasses

OperationProxy

Instance Attribute Summary collapse

Method Summary

Methods inherited from ResourceBuilder

#__extension_module__, #__extensions__, #__subresource__, #extending, #initialize, #to_resource

Methods inherited from Proxy

#respond_to?

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

Parameters:

  • value

    the value to set the attribute klass to.



3
4
5
# File 'lib/cardiac/operation_builder.rb', line 3

def klass=(value)
  @klass = value
end