Class: VersSdk::ErrorResponse
- Inherits:
-
Object
- Object
- VersSdk::ErrorResponse
- Defined in:
- lib/vers_sdk/models.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
1053 1054 1055 1056 |
# File 'lib/vers_sdk/models.rb', line 1053 def self.from_json(json_str) obj = json_str.is_a?(String) ? JSON.parse(json_str) : json_str new(obj) end |
Instance Method Details
#to_h ⇒ Object
1058 1059 1060 1061 1062 1063 |
# File 'lib/vers_sdk/models.rb', line 1058 def to_h { "error" => @error_response, "success" => @error_response, } end |
#to_json(*args) ⇒ Object
1065 1066 1067 |
# File 'lib/vers_sdk/models.rb', line 1065 def to_json(*args) to_h.to_json(*args) end |