Class: OvirtSDK4::MacPool
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::MacPool
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#allow_duplicates ⇒ Boolean
Returns the value of the
allow_duplicates
attribute. -
#allow_duplicates=(value) ⇒ Object
Sets the value of the
allow_duplicates
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#default_pool ⇒ Boolean
Returns the value of the
default_pool
attribute. -
#default_pool=(value) ⇒ Object
Sets the value of the
default_pool
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ MacPool
constructor
Creates a new instance of the MacPool class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#ranges ⇒ Array<Range>
Returns the value of the
ranges
attribute. -
#ranges=(list) ⇒ Object
Sets the value of the
ranges
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ MacPool
Creates a new instance of the OvirtSDK4::MacPool class.
8988 8989 8990 8991 8992 8993 |
# File 'lib/ovirtsdk4/types.rb', line 8988 def initialize(opts = {}) super(opts) self.allow_duplicates = opts[:allow_duplicates] self.default_pool = opts[:default_pool] self.ranges = opts[:ranges] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
8998 8999 9000 9001 9002 9003 |
# File 'lib/ovirtsdk4/types.rb', line 8998 def ==(other) super && @allow_duplicates == other.allow_duplicates && @default_pool == other.default_pool && @ranges == other.ranges end |
#allow_duplicates ⇒ Boolean
Returns the value of the allow_duplicates
attribute.
8837 8838 8839 |
# File 'lib/ovirtsdk4/types.rb', line 8837 def allow_duplicates @allow_duplicates end |
#allow_duplicates=(value) ⇒ Object
Sets the value of the allow_duplicates
attribute.
8846 8847 8848 |
# File 'lib/ovirtsdk4/types.rb', line 8846 def allow_duplicates=(value) @allow_duplicates = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
8855 8856 8857 |
# File 'lib/ovirtsdk4/types.rb', line 8855 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
8864 8865 8866 |
# File 'lib/ovirtsdk4/types.rb', line 8864 def comment=(value) @comment = value end |
#default_pool ⇒ Boolean
Returns the value of the default_pool
attribute.
8873 8874 8875 |
# File 'lib/ovirtsdk4/types.rb', line 8873 def default_pool @default_pool end |
#default_pool=(value) ⇒ Object
Sets the value of the default_pool
attribute.
8882 8883 8884 |
# File 'lib/ovirtsdk4/types.rb', line 8882 def default_pool=(value) @default_pool = value end |
#description ⇒ String
Returns the value of the description
attribute.
8891 8892 8893 |
# File 'lib/ovirtsdk4/types.rb', line 8891 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
8900 8901 8902 |
# File 'lib/ovirtsdk4/types.rb', line 8900 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
9008 9009 9010 9011 9012 9013 |
# File 'lib/ovirtsdk4/types.rb', line 9008 def hash super + @allow_duplicates.hash + @default_pool.hash + @ranges.hash end |
#id ⇒ String
Returns the value of the id
attribute.
8909 8910 8911 |
# File 'lib/ovirtsdk4/types.rb', line 8909 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
8918 8919 8920 |
# File 'lib/ovirtsdk4/types.rb', line 8918 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
8927 8928 8929 |
# File 'lib/ovirtsdk4/types.rb', line 8927 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
8936 8937 8938 |
# File 'lib/ovirtsdk4/types.rb', line 8936 def name=(value) @name = value end |
#ranges ⇒ Array<Range>
Returns the value of the ranges
attribute.
8945 8946 8947 |
# File 'lib/ovirtsdk4/types.rb', line 8945 def ranges @ranges end |
#ranges=(list) ⇒ Object
Sets the value of the ranges
attribute.
8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 |
# File 'lib/ovirtsdk4/types.rb', line 8954 def ranges=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Range.new(value) end end end @ranges = list end |