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.
30836 30837 30838 30839 |
# File 'lib/ovirtsdk4/types.rb', line 30836 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.
30844 30845 30846 30847 |
# File 'lib/ovirtsdk4/types.rb', line 30844 def ==(other) super && @value == other.value end |
#comment ⇒ String
Returns the value of the comment
attribute.
30733 30734 30735 |
# File 'lib/ovirtsdk4/types.rb', line 30733 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
30742 30743 30744 |
# File 'lib/ovirtsdk4/types.rb', line 30742 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
30751 30752 30753 |
# File 'lib/ovirtsdk4/types.rb', line 30751 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
30760 30761 30762 |
# File 'lib/ovirtsdk4/types.rb', line 30760 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
30852 30853 30854 30855 |
# File 'lib/ovirtsdk4/types.rb', line 30852 def hash super + @value.hash end |
#id ⇒ String
Returns the value of the id
attribute.
30769 30770 30771 |
# File 'lib/ovirtsdk4/types.rb', line 30769 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
30778 30779 30780 |
# File 'lib/ovirtsdk4/types.rb', line 30778 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
30787 30788 30789 |
# File 'lib/ovirtsdk4/types.rb', line 30787 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
30796 30797 30798 |
# File 'lib/ovirtsdk4/types.rb', line 30796 def name=(value) @name = value end |
#value ⇒ String
Returns the value of the value
attribute.
30805 30806 30807 |
# File 'lib/ovirtsdk4/types.rb', line 30805 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
30814 30815 30816 |
# File 'lib/ovirtsdk4/types.rb', line 30814 def value=(value) @value = value end |