Class: Maquina::Resourceful::ResourceResponse

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/concerns/maquina/resourceful.rb

Overview

Internal class to handle success/failure response blocks in dual actions

Instance Method Summary collapse

Instance Method Details

#codeObject

Returns the stored block



32
33
34
# File 'app/controllers/concerns/maquina/resourceful.rb', line 32

def code
  @block
end

#response(&block) ⇒ Object

Stores the response block



26
27
28
# File 'app/controllers/concerns/maquina/resourceful.rb', line 26

def response(&block)
  @block = block
end