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
139 140 141 142 |
# File 'lib/vers_sdk/models.rb', line 139 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
144 145 146 147 148 149 |
# File 'lib/vers_sdk/models.rb', line 144 def to_h { "error" => @error_response, "success" => @error_response, } end |
#to_json(*args) ⇒ Object
151 152 153 |
# File 'lib/vers_sdk/models.rb', line 151 def to_json(*args) to_h.to_json(*args) end |