Class: TheForemanProxmox::OptionsSelect

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ OptionsSelect

Returns a new instance of OptionsSelect.



30
31
32
33
34
# File 'app/models/the_foreman_proxmox/options_select.rb', line 30

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/the_foreman_proxmox/options_select.rb', line 22

def id
  @id
end

#nameObject

Returns the value of attribute name.



23
24
25
# File 'app/models/the_foreman_proxmox/options_select.rb', line 23

def name
  @name
end

#rangeObject

Returns the value of attribute range.



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

def range
  @range
end

Instance Method Details

#to_sObject



26
27
28
# File 'app/models/the_foreman_proxmox/options_select.rb', line 26

def to_s
  id
end