Class: OvirtSDK4::Bookmark
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Bookmark
- 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. -
#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 = {}) ⇒ Bookmark
constructor
Creates a new instance of the Bookmark class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#value ⇒ String
Returns the value of the
value
attribute. -
#value=(value) ⇒ Object
Sets the value of the
value
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Bookmark
Creates a new instance of the OvirtSDK4::Bookmark class.
30654 30655 30656 30657 |
# File 'lib/ovirtsdk4/types.rb', line 30654 def initialize(opts = {}) super(opts) self.value = opts[:value] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
30662 30663 30664 30665 |
# File 'lib/ovirtsdk4/types.rb', line 30662 def ==(other) super && @value == other.value end |
#comment ⇒ String
Returns the value of the comment
attribute.
30551 30552 30553 |
# File 'lib/ovirtsdk4/types.rb', line 30551 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
30560 30561 30562 |
# File 'lib/ovirtsdk4/types.rb', line 30560 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
30569 30570 30571 |
# File 'lib/ovirtsdk4/types.rb', line 30569 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
30578 30579 30580 |
# File 'lib/ovirtsdk4/types.rb', line 30578 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
30670 30671 30672 30673 |
# File 'lib/ovirtsdk4/types.rb', line 30670 def hash super + @value.hash end |
#id ⇒ String
Returns the value of the id
attribute.
30587 30588 30589 |
# File 'lib/ovirtsdk4/types.rb', line 30587 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
30596 30597 30598 |
# File 'lib/ovirtsdk4/types.rb', line 30596 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
30605 30606 30607 |
# File 'lib/ovirtsdk4/types.rb', line 30605 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
30614 30615 30616 |
# File 'lib/ovirtsdk4/types.rb', line 30614 def name=(value) @name = value end |
#value ⇒ String
Returns the value of the value
attribute.
30623 30624 30625 |
# File 'lib/ovirtsdk4/types.rb', line 30623 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
30632 30633 30634 |
# File 'lib/ovirtsdk4/types.rb', line 30632 def value=(value) @value = value end |