Class: RazorRisk::Razor::Connectivity::Razor3::Response::Reason
- Inherits:
-
Object
- Object
- RazorRisk::Razor::Connectivity::Razor3::Response::Reason
- Defined in:
- lib/razor_risk/razor/connectivity/razor_3/response.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(code, message, details, **options) ⇒ Reason
constructor
A new instance of Reason.
- #to_s ⇒ Object
Constructor Details
#initialize(code, message, details, **options) ⇒ Reason
Returns a new instance of Reason.
52 53 54 55 56 57 58 |
# File 'lib/razor_risk/razor/connectivity/razor_3/response.rb', line 52 def initialize code, , details, ** @code = code @message = @details = details @options = {}.merge! end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
60 61 62 |
# File 'lib/razor_risk/razor/connectivity/razor_3/response.rb', line 60 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
62 63 64 |
# File 'lib/razor_risk/razor/connectivity/razor_3/response.rb', line 62 def details @details end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
61 62 63 |
# File 'lib/razor_risk/razor/connectivity/razor_3/response.rb', line 61 def @message end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
63 64 65 |
# File 'lib/razor_risk/razor/connectivity/razor_3/response.rb', line 63 def @options end |
Instance Method Details
#to_s ⇒ Object
65 66 67 68 |
# File 'lib/razor_risk/razor/connectivity/razor_3/response.rb', line 65 def to_s "#{code}: #{}: #{details}" end |