Class: OvirtSDK4::Permit
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Permit
- 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. -
#administrative ⇒ Boolean
Returns the value of the
administrative
attribute. -
#administrative=(value) ⇒ Object
Sets the value of the
administrative
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
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 = {}) ⇒ Permit
constructor
Creates a new instance of the Permit class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#role ⇒ Role
Returns the value of the
role
attribute. -
#role=(value) ⇒ Object
Sets the value of the
role
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Permit
Creates a new instance of the OvirtSDK4::Permit class.
13843 13844 13845 13846 13847 |
# File 'lib/ovirtsdk4/types.rb', line 13843 def initialize(opts = {}) super(opts) self.administrative = opts[:administrative] self.role = opts[:role] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
13852 13853 13854 13855 13856 |
# File 'lib/ovirtsdk4/types.rb', line 13852 def ==(other) super && @administrative == other.administrative && @role == other.role end |
#administrative ⇒ Boolean
Returns the value of the administrative
attribute.
13713 13714 13715 |
# File 'lib/ovirtsdk4/types.rb', line 13713 def administrative @administrative end |
#administrative=(value) ⇒ Object
Sets the value of the administrative
attribute.
13722 13723 13724 |
# File 'lib/ovirtsdk4/types.rb', line 13722 def administrative=(value) @administrative = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
13731 13732 13733 |
# File 'lib/ovirtsdk4/types.rb', line 13731 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
13740 13741 13742 |
# File 'lib/ovirtsdk4/types.rb', line 13740 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
13749 13750 13751 |
# File 'lib/ovirtsdk4/types.rb', line 13749 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
13758 13759 13760 |
# File 'lib/ovirtsdk4/types.rb', line 13758 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
13861 13862 13863 13864 13865 |
# File 'lib/ovirtsdk4/types.rb', line 13861 def hash super + @administrative.hash + @role.hash end |
#id ⇒ String
Returns the value of the id
attribute.
13767 13768 13769 |
# File 'lib/ovirtsdk4/types.rb', line 13767 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
13776 13777 13778 |
# File 'lib/ovirtsdk4/types.rb', line 13776 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
13785 13786 13787 |
# File 'lib/ovirtsdk4/types.rb', line 13785 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
13794 13795 13796 |
# File 'lib/ovirtsdk4/types.rb', line 13794 def name=(value) @name = value end |
#role ⇒ Role
Returns the value of the role
attribute.
13803 13804 13805 |
# File 'lib/ovirtsdk4/types.rb', line 13803 def role @role end |
#role=(value) ⇒ Object
Sets the value of the role
attribute.
The value
parameter can be an instance of Role or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
13816 13817 13818 13819 13820 13821 |
# File 'lib/ovirtsdk4/types.rb', line 13816 def role=(value) if value.is_a?(Hash) value = Role.new(value) end @role = value end |