Exception: FlexmlsApi::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- FlexmlsApi::ClientError
- Defined in:
- lib/flexmls_api/response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ClientError
constructor
A new instance of ClientError.
Constructor Details
#initialize(options = {}) ⇒ ClientError
Returns a new instance of ClientError.
33 34 35 36 37 38 39 40 |
# File 'lib/flexmls_api/response.rb', line 33 def initialize ( = {}) # Support the standard initializer for errors opts = .is_a?(Hash) ? : {:message => .to_s} @code = opts[:code] @status = opts[:status] @details = opts[:details] super(opts[:message]) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
32 33 34 |
# File 'lib/flexmls_api/response.rb', line 32 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
32 33 34 |
# File 'lib/flexmls_api/response.rb', line 32 def details @details end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
32 33 34 |
# File 'lib/flexmls_api/response.rb', line 32 def status @status end |