Class: OvirtSDK4::Bookmark

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Bookmark

Creates a new instance of the OvirtSDK4::Bookmark class.

Options Hash (opts):

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :value (String)

    The value of attribute value.



33229
33230
33231
33232
# File 'lib/ovirtsdk4/types.rb', line 33229

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.



33237
33238
33239
33240
# File 'lib/ovirtsdk4/types.rb', line 33237

def ==(other)
  super &&
  @value == other.value
end

#commentString

Returns the value of the comment attribute.



33126
33127
33128
# File 'lib/ovirtsdk4/types.rb', line 33126

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.



33135
33136
33137
# File 'lib/ovirtsdk4/types.rb', line 33135

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.



33144
33145
33146
# File 'lib/ovirtsdk4/types.rb', line 33144

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.



33153
33154
33155
# File 'lib/ovirtsdk4/types.rb', line 33153

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.



33245
33246
33247
33248
# File 'lib/ovirtsdk4/types.rb', line 33245

def hash
  super +
  @value.hash
end

#idString

Returns the value of the id attribute.



33162
33163
33164
# File 'lib/ovirtsdk4/types.rb', line 33162

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.



33171
33172
33173
# File 'lib/ovirtsdk4/types.rb', line 33171

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.



33180
33181
33182
# File 'lib/ovirtsdk4/types.rb', line 33180

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.



33189
33190
33191
# File 'lib/ovirtsdk4/types.rb', line 33189

def name=(value)
  @name = value
end

#valueString

Returns the value of the value attribute.



33198
33199
33200
# File 'lib/ovirtsdk4/types.rb', line 33198

def value
  @value
end

#value=(value) ⇒ Object

Sets the value of the value attribute.



33207
33208
33209
# File 'lib/ovirtsdk4/types.rb', line 33207

def value=(value)
  @value = value
end