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.
14652 14653 14654 14655 14656 |
# File 'lib/ovirtsdk4/types.rb', line 14652 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.
14661 14662 14663 14664 14665 |
# File 'lib/ovirtsdk4/types.rb', line 14661 def ==(other) super && @administrative == other.administrative && @role == other.role end |
#administrative ⇒ Boolean
Returns the value of the administrative
attribute.
14522 14523 14524 |
# File 'lib/ovirtsdk4/types.rb', line 14522 def administrative @administrative end |
#administrative=(value) ⇒ Object
Sets the value of the administrative
attribute.
14531 14532 14533 |
# File 'lib/ovirtsdk4/types.rb', line 14531 def administrative=(value) @administrative = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
14540 14541 14542 |
# File 'lib/ovirtsdk4/types.rb', line 14540 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
14549 14550 14551 |
# File 'lib/ovirtsdk4/types.rb', line 14549 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
14558 14559 14560 |
# File 'lib/ovirtsdk4/types.rb', line 14558 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
14567 14568 14569 |
# File 'lib/ovirtsdk4/types.rb', line 14567 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
14670 14671 14672 14673 14674 |
# File 'lib/ovirtsdk4/types.rb', line 14670 def hash super + @administrative.hash + @role.hash end |
#id ⇒ String
Returns the value of the id
attribute.
14576 14577 14578 |
# File 'lib/ovirtsdk4/types.rb', line 14576 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
14585 14586 14587 |
# File 'lib/ovirtsdk4/types.rb', line 14585 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
14594 14595 14596 |
# File 'lib/ovirtsdk4/types.rb', line 14594 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
14603 14604 14605 |
# File 'lib/ovirtsdk4/types.rb', line 14603 def name=(value) @name = value end |
#role ⇒ Role
Returns the value of the role
attribute.
14612 14613 14614 |
# File 'lib/ovirtsdk4/types.rb', line 14612 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.
14625 14626 14627 14628 14629 14630 |
# File 'lib/ovirtsdk4/types.rb', line 14625 def role=(value) if value.is_a?(Hash) value = Role.new(value) end @role = value end |