Class: Nimbus::V4::BaseController::ResponseCode

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/mno_enterprise/nimbus/v4/base_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code, http_code) ⇒ ResponseCode

Returns a new instance of ResponseCode.



11
12
13
14
# File 'app/controllers/mno_enterprise/nimbus/v4/base_controller.rb', line 11

def initialize(error_code, http_code)
  @error_code = error_code
  @http_code = http_code
end

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



9
10
11
# File 'app/controllers/mno_enterprise/nimbus/v4/base_controller.rb', line 9

def error_code
  @error_code
end

#http_codeObject

Returns the value of attribute http_code.



9
10
11
# File 'app/controllers/mno_enterprise/nimbus/v4/base_controller.rb', line 9

def http_code
  @http_code
end