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.
30783 30784 30785 30786 |
# File 'lib/ovirtsdk4/types.rb', line 30783 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.
30791 30792 30793 30794 |
# File 'lib/ovirtsdk4/types.rb', line 30791 def ==(other) super && @value == other.value end |
#comment ⇒ String
Returns the value of the comment
attribute.
30680 30681 30682 |
# File 'lib/ovirtsdk4/types.rb', line 30680 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
30689 30690 30691 |
# File 'lib/ovirtsdk4/types.rb', line 30689 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
30698 30699 30700 |
# File 'lib/ovirtsdk4/types.rb', line 30698 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
30707 30708 30709 |
# File 'lib/ovirtsdk4/types.rb', line 30707 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
30799 30800 30801 30802 |
# File 'lib/ovirtsdk4/types.rb', line 30799 def hash super + @value.hash end |
#id ⇒ String
Returns the value of the id
attribute.
30716 30717 30718 |
# File 'lib/ovirtsdk4/types.rb', line 30716 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
30725 30726 30727 |
# File 'lib/ovirtsdk4/types.rb', line 30725 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
30734 30735 30736 |
# File 'lib/ovirtsdk4/types.rb', line 30734 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
30743 30744 30745 |
# File 'lib/ovirtsdk4/types.rb', line 30743 def name=(value) @name = value end |
#value ⇒ String
Returns the value of the value
attribute.
30752 30753 30754 |
# File 'lib/ovirtsdk4/types.rb', line 30752 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
30761 30762 30763 |
# File 'lib/ovirtsdk4/types.rb', line 30761 def value=(value) @value = value end |