Class: OvirtSDK4::Hook
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Hook
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) event_name
Returns the value of the
event_name
attribute. -
- (Object) event_name=(value)
Sets the value of the
event_name
attribute. -
- (Host) host
Returns the value of the
host
attribute. -
- (Object) host=(value)
Sets the value of the
host
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Hook) initialize(opts = {})
constructor
Creates a new instance of the Hook class.
-
- (String) md5
Returns the value of the
md5
attribute. -
- (Object) md5=(value)
Sets the value of the
md5
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
- (Hook) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Hook class.
32389 32390 32391 32392 32393 32394 32395 32396 32397 32398 |
# File 'lib/ovirtsdk4/types.rb', line 32389 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.event_name = opts[:event_name] self.host = opts[:host] self.id = opts[:id] self.md5 = opts[:md5] self.name = opts[:name] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
32239 32240 32241 |
# File 'lib/ovirtsdk4/types.rb', line 32239 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
32248 32249 32250 |
# File 'lib/ovirtsdk4/types.rb', line 32248 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
32257 32258 32259 |
# File 'lib/ovirtsdk4/types.rb', line 32257 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
32266 32267 32268 |
# File 'lib/ovirtsdk4/types.rb', line 32266 def description=(value) @description = value end |
- (String) event_name
Returns the value of the event_name
attribute.
32275 32276 32277 |
# File 'lib/ovirtsdk4/types.rb', line 32275 def event_name return @event_name end |
- (Object) event_name=(value)
Sets the value of the event_name
attribute.
32284 32285 32286 |
# File 'lib/ovirtsdk4/types.rb', line 32284 def event_name=(value) @event_name = value end |
- (Host) host
Returns the value of the host
attribute.
32293 32294 32295 |
# File 'lib/ovirtsdk4/types.rb', line 32293 def host return @host end |
- (Object) host=(value)
Sets the value of the host
attribute.
The value
parameter can be an instance of OvirtSDK4::Host 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.
32306 32307 32308 32309 32310 32311 |
# File 'lib/ovirtsdk4/types.rb', line 32306 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
- (String) id
Returns the value of the id
attribute.
32318 32319 32320 |
# File 'lib/ovirtsdk4/types.rb', line 32318 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
32327 32328 32329 |
# File 'lib/ovirtsdk4/types.rb', line 32327 def id=(value) @id = value end |
- (String) md5
Returns the value of the md5
attribute.
32336 32337 32338 |
# File 'lib/ovirtsdk4/types.rb', line 32336 def md5 return @md5 end |
- (Object) md5=(value)
Sets the value of the md5
attribute.
32345 32346 32347 |
# File 'lib/ovirtsdk4/types.rb', line 32345 def md5=(value) @md5 = value end |
- (String) name
Returns the value of the name
attribute.
32354 32355 32356 |
# File 'lib/ovirtsdk4/types.rb', line 32354 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
32363 32364 32365 |
# File 'lib/ovirtsdk4/types.rb', line 32363 def name=(value) @name = value end |