Class: OvirtSDK4::Mac
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#address ⇒ String
Returns the value of the
addressattribute. -
#address=(value) ⇒ Object
Sets the value of the
addressattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Mac
constructor
Creates a new instance of the Mac class.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Mac
Creates a new instance of the OvirtSDK4::Mac class.
9592 9593 9594 9595 |
# File 'lib/ovirtsdk4/types.rb', line 9592 def initialize(opts = {}) super(opts) self.address = opts[:address] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
9600 9601 9602 9603 |
# File 'lib/ovirtsdk4/types.rb', line 9600 def ==(other) super && @address == other.address end |
#address ⇒ String
Returns the value of the address attribute.
9569 9570 9571 |
# File 'lib/ovirtsdk4/types.rb', line 9569 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
9578 9579 9580 |
# File 'lib/ovirtsdk4/types.rb', line 9578 def address=(value) @address = value end |
#hash ⇒ Object
Generates a hash value for this object.
9608 9609 9610 9611 |
# File 'lib/ovirtsdk4/types.rb', line 9608 def hash super + @address.hash end |