Exception: Salesfly::ResponseError
- Defined in:
- lib/salesfly/errors/response_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(msg = "", status = 400, code = "") ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(msg = "", status = 400, code = "") ⇒ ResponseError
Returns a new instance of ResponseError.
5 6 7 8 9 |
# File 'lib/salesfly/errors/response_error.rb', line 5 def initialize(msg="", status=400, code="") @status = status @code = code super(msg) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/salesfly/errors/response_error.rb', line 3 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/salesfly/errors/response_error.rb', line 3 def status @status end |