Module: CubaApi::ResponseStatus
- Defined in:
- lib/cuba_api/aspects/response_status.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
11 12 13 |
# File 'lib/cuba_api/aspects/response_status.rb', line 11 def self.included( base ) base.prepend_aspect :response_status end |
Instance Method Details
#response_status(obj, options = {}) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/cuba_api/aspects/response_status.rb', line 3 def response_status( obj, = {}) if [ :response_status ] == false obj else handle_status( obj ) end end |