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.
8941 8942 8943 8944 |
# File 'lib/ovirtsdk4/types.rb', line 8941 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.
8949 8950 8951 8952 |
# File 'lib/ovirtsdk4/types.rb', line 8949 def ==(other) super && @address == other.address end |
#address ⇒ String
Returns the value of the address
attribute.
8918 8919 8920 |
# File 'lib/ovirtsdk4/types.rb', line 8918 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
8927 8928 8929 |
# File 'lib/ovirtsdk4/types.rb', line 8927 def address=(value) @address = value end |
#hash ⇒ Object
Generates a hash value for this object.
8957 8958 8959 8960 |
# File 'lib/ovirtsdk4/types.rb', line 8957 def hash super + @address.hash end |