Class: OvirtSDK4::Icon

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

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Icon) initialize(opts = {})

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

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :comment (String)

    The value of attribute comment.

  • :data (String)

    The value of attribute data.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :media_type (String)

    The value of attribute media_type.

  • :name (String)

    The value of attribute name.



35375
35376
35377
35378
35379
35380
35381
35382
35383
# File 'lib/ovirtsdk4/types.rb', line 35375

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.data = opts[:data]
  self.description = opts[:description]
  self.id = opts[:id]
  self.media_type = opts[:media_type]
  self.name = opts[:name]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


35252
35253
35254
# File 'lib/ovirtsdk4/types.rb', line 35252

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


35261
35262
35263
# File 'lib/ovirtsdk4/types.rb', line 35261

def comment=(value)
  @comment = value
end

- (String) data

Returns the value of the data attribute.

Returns:

  • (String)


35270
35271
35272
# File 'lib/ovirtsdk4/types.rb', line 35270

def data
  return @data
end

- (Object) data=(value)

Sets the value of the data attribute.

Parameters:

  • value (String)


35279
35280
35281
# File 'lib/ovirtsdk4/types.rb', line 35279

def data=(value)
  @data = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


35288
35289
35290
# File 'lib/ovirtsdk4/types.rb', line 35288

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


35297
35298
35299
# File 'lib/ovirtsdk4/types.rb', line 35297

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


35306
35307
35308
# File 'lib/ovirtsdk4/types.rb', line 35306

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


35315
35316
35317
# File 'lib/ovirtsdk4/types.rb', line 35315

def id=(value)
  @id = value
end

- (String) media_type

Returns the value of the media_type attribute.

Returns:

  • (String)


35324
35325
35326
# File 'lib/ovirtsdk4/types.rb', line 35324

def media_type
  return @media_type
end

- (Object) media_type=(value)

Sets the value of the media_type attribute.

Parameters:

  • value (String)


35333
35334
35335
# File 'lib/ovirtsdk4/types.rb', line 35333

def media_type=(value)
  @media_type = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


35342
35343
35344
# File 'lib/ovirtsdk4/types.rb', line 35342

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


35351
35352
35353
# File 'lib/ovirtsdk4/types.rb', line 35351

def name=(value)
  @name = value
end