Module: Auxilium::SignumResponder

Included in:
Responder
Defined in:
lib/auxilium/responders/signum_responder.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.helperObject

Returns the value of attribute helper.



8
9
10
# File 'lib/auxilium/responders/signum_responder.rb', line 8

def helper
  @helper
end

.namespace_lookupObject

Returns the value of attribute namespace_lookup.



8
9
10
# File 'lib/auxilium/responders/signum_responder.rb', line 8

def namespace_lookup
  @namespace_lookup
end

.signum_keysObject

Returns the value of attribute signum_keys.



8
9
10
# File 'lib/auxilium/responders/signum_responder.rb', line 8

def signum_keys
  @signum_keys
end

Instance Method Details

#initialize(controller, resources, options = {}) ⇒ Object



18
19
20
21
22
23
# File 'lib/auxilium/responders/signum_responder.rb', line 18

def initialize(controller, resources, options = {})
  super
  @signum = options.delete(:signum)
  @success = options.delete(:success)
  @error = options.delete(:error)
end

#to_htmlObject



25
26
27
28
# File 'lib/auxilium/responders/signum_responder.rb', line 25

def to_html
  send_signum! if send_signum?
  super
end

#to_jsObject



30
31
32
33
# File 'lib/auxilium/responders/signum_responder.rb', line 30

def to_js
  send_signum! if send_signum?
  defined?(super) ? super : to_format
end