Class: OvirtSDK4::EventSubscription
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::EventSubscription
- 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. -
#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. -
#event ⇒ NotifiableEvent
Returns the value of the
event
attribute. -
#event=(value) ⇒ Object
Sets the value of the
event
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 = {}) ⇒ EventSubscription
constructor
Creates a new instance of the EventSubscription class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#notification_method ⇒ NotificationMethod
Returns the value of the
notification_method
attribute. -
#notification_method=(value) ⇒ Object
Sets the value of the
notification_method
attribute. -
#user ⇒ User
Returns the value of the
user
attribute. -
#user=(value) ⇒ Object
Sets the value of the
user
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ EventSubscription
Creates a new instance of the OvirtSDK4::EventSubscription class.
39717 39718 39719 39720 39721 39722 39723 |
# File 'lib/ovirtsdk4/types.rb', line 39717 def initialize(opts = {}) super(opts) self.address = opts[:address] self.event = opts[:event] self.notification_method = opts[:notification_method] self.user = opts[:user] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
39728 39729 39730 39731 39732 39733 39734 |
# File 'lib/ovirtsdk4/types.rb', line 39728 def ==(other) super && @address == other.address && @event == other.event && @notification_method == other.notification_method && @user == other.user end |
#address ⇒ String
Returns the value of the address
attribute.
39547 39548 39549 |
# File 'lib/ovirtsdk4/types.rb', line 39547 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
39556 39557 39558 |
# File 'lib/ovirtsdk4/types.rb', line 39556 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
39565 39566 39567 |
# File 'lib/ovirtsdk4/types.rb', line 39565 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39574 39575 39576 |
# File 'lib/ovirtsdk4/types.rb', line 39574 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
39583 39584 39585 |
# File 'lib/ovirtsdk4/types.rb', line 39583 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39592 39593 39594 |
# File 'lib/ovirtsdk4/types.rb', line 39592 def description=(value) @description = value end |
#event ⇒ NotifiableEvent
Returns the value of the event
attribute.
39601 39602 39603 |
# File 'lib/ovirtsdk4/types.rb', line 39601 def event @event end |
#event=(value) ⇒ Object
Sets the value of the event
attribute.
39610 39611 39612 |
# File 'lib/ovirtsdk4/types.rb', line 39610 def event=(value) @event = value end |
#hash ⇒ Object
Generates a hash value for this object.
39739 39740 39741 39742 39743 39744 39745 |
# File 'lib/ovirtsdk4/types.rb', line 39739 def hash super + @address.hash + @event.hash + @notification_method.hash + @user.hash end |
#id ⇒ String
Returns the value of the id
attribute.
39619 39620 39621 |
# File 'lib/ovirtsdk4/types.rb', line 39619 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39628 39629 39630 |
# File 'lib/ovirtsdk4/types.rb', line 39628 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
39637 39638 39639 |
# File 'lib/ovirtsdk4/types.rb', line 39637 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39646 39647 39648 |
# File 'lib/ovirtsdk4/types.rb', line 39646 def name=(value) @name = value end |
#notification_method ⇒ NotificationMethod
Returns the value of the notification_method
attribute.
39655 39656 39657 |
# File 'lib/ovirtsdk4/types.rb', line 39655 def notification_method @notification_method end |
#notification_method=(value) ⇒ Object
Sets the value of the notification_method
attribute.
39664 39665 39666 |
# File 'lib/ovirtsdk4/types.rb', line 39664 def notification_method=(value) @notification_method = value end |
#user ⇒ User
Returns the value of the user
attribute.
39673 39674 39675 |
# File 'lib/ovirtsdk4/types.rb', line 39673 def user @user end |
#user=(value) ⇒ Object
Sets the value of the user
attribute.
The value
parameter can be an instance of User 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.
39686 39687 39688 39689 39690 39691 |
# File 'lib/ovirtsdk4/types.rb', line 39686 def user=(value) if value.is_a?(Hash) value = User.new(value) end @user = value end |