Class: Fog::Proxmox::Identity::TokenInfo

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/proxmox/identity/models/token_info.rb

Overview

class TokenInfo model

Instance Method Summary collapse

Constructor Details

#initialize(new_attributes = {}) ⇒ TokenInfo

Returns a new instance of TokenInfo.



31
32
33
34
35
36
37
# File 'lib/fog/proxmox/identity/models/token_info.rb', line 31

def initialize(new_attributes = {})
  prepare_service_value(new_attributes)
  Fog::Proxmox::Attributes.set_attr_and_sym('tokenid', attributes, new_attributes)
  Fog::Proxmox::Attributes.set_attr_and_sym('userid', attributes, new_attributes)
  requires :userid, :tokenid
  super(new_attributes)
end