Class: ForemanFogProxmox::OptionsSelect

Inherits:
Object
  • Object
show all
Defined in:
app/models/foreman_fog_proxmox/options_select.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ OptionsSelect

Returns a new instance of OptionsSelect.



28
29
30
31
32
# File 'app/models/foreman_fog_proxmox/options_select.rb', line 28

def initialize(args = {})
  @id = args[:id]
  @name = args[:name]
  @range = args[:range]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



22
23
24
# File 'app/models/foreman_fog_proxmox/options_select.rb', line 22

def id
  @id
end

#nameObject

Returns the value of attribute name.



22
23
24
# File 'app/models/foreman_fog_proxmox/options_select.rb', line 22

def name
  @name
end

#rangeObject

Returns the value of attribute range.



22
23
24
# File 'app/models/foreman_fog_proxmox/options_select.rb', line 22

def range
  @range
end

Instance Method Details

#to_sObject



24
25
26
# File 'app/models/foreman_fog_proxmox/options_select.rb', line 24

def to_s
  id
end