Class: VersSdk::WhoamiApiKey
- Inherits:
-
Object
- Object
- VersSdk::WhoamiApiKey
- Defined in:
- lib/vers_sdk/models.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
219 220 221 222 |
# File 'lib/vers_sdk/models.rb', line 219 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
224 225 226 227 228 229 230 231 232 233 |
# File 'lib/vers_sdk/models.rb', line 224 def to_h { "created_at" => @whoami_api_key, "expires_at" => @whoami_api_key, "id" => @whoami_api_key, "label" => @whoami_api_key, "max_memory_mib" => @whoami_api_key, "max_vcpus" => @whoami_api_key, } end |
#to_json(*args) ⇒ Object
235 236 237 |
# File 'lib/vers_sdk/models.rb', line 235 def to_json(*args) to_h.to_json(*args) end |