Class: OvirtSDK4::Mac
- 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. -
#address ⇒ String
Returns the value of the
address
attribute. -
#address=(value) ⇒ Object
Sets the value of the
address
attribute. -
#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.
8682 8683 8684 8685 |
# File 'lib/ovirtsdk4/types.rb', line 8682 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.
8690 8691 8692 8693 |
# File 'lib/ovirtsdk4/types.rb', line 8690 def ==(other) super && @address == other.address end |
#address ⇒ String
Returns the value of the address
attribute.
8659 8660 8661 |
# File 'lib/ovirtsdk4/types.rb', line 8659 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
8668 8669 8670 |
# File 'lib/ovirtsdk4/types.rb', line 8668 def address=(value) @address = value end |
#hash ⇒ Object
Generates a hash value for this object.
8698 8699 8700 8701 |
# File 'lib/ovirtsdk4/types.rb', line 8698 def hash super + @address.hash end |