Class: VersSdk::DomainResponse
- Inherits:
-
Object
- Object
- VersSdk::DomainResponse
- Defined in:
- lib/vers_sdk/models.rb
Overview
Response type for domain operations.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
272 273 274 275 |
# File 'lib/vers_sdk/models.rb', line 272 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
277 278 279 280 281 282 283 284 |
# File 'lib/vers_sdk/models.rb', line 277 def to_h { "created_at" => @domain_response, "domain" => @domain_response, "domain_id" => @domain_response, "vm_id" => @domain_response, } end |
#to_json(*args) ⇒ Object
286 287 288 |
# File 'lib/vers_sdk/models.rb', line 286 def to_json(*args) to_h.to_json(*args) end |