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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Bookmark
constructor
Creates a new instance of the Bookmark class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#value ⇒ String
Returns the value of the
valueattribute. -
#value=(value) ⇒ Object
Sets the value of the
valueattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Bookmark
Creates a new instance of the OvirtSDK4::Bookmark class.
30714 30715 30716 30717 |
# File 'lib/ovirtsdk4/types.rb', line 30714 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.
30722 30723 30724 30725 |
# File 'lib/ovirtsdk4/types.rb', line 30722 def ==(other) super && @value == other.value end |
#comment ⇒ String
Returns the value of the comment attribute.
30611 30612 30613 |
# File 'lib/ovirtsdk4/types.rb', line 30611 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
30620 30621 30622 |
# File 'lib/ovirtsdk4/types.rb', line 30620 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
30629 30630 30631 |
# File 'lib/ovirtsdk4/types.rb', line 30629 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
30638 30639 30640 |
# File 'lib/ovirtsdk4/types.rb', line 30638 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
30730 30731 30732 30733 |
# File 'lib/ovirtsdk4/types.rb', line 30730 def hash super + @value.hash end |
#id ⇒ String
Returns the value of the id attribute.
30647 30648 30649 |
# File 'lib/ovirtsdk4/types.rb', line 30647 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
30656 30657 30658 |
# File 'lib/ovirtsdk4/types.rb', line 30656 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
30665 30666 30667 |
# File 'lib/ovirtsdk4/types.rb', line 30665 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
30674 30675 30676 |
# File 'lib/ovirtsdk4/types.rb', line 30674 def name=(value) @name = value end |
#value ⇒ String
Returns the value of the value attribute.
30683 30684 30685 |
# File 'lib/ovirtsdk4/types.rb', line 30683 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value attribute.
30692 30693 30694 |
# File 'lib/ovirtsdk4/types.rb', line 30692 def value=(value) @value = value end |