Class: OvirtSDK4::Range

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Range) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Range 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):

  • :from (String)

    The value of attribute from.

  • :to (String)

    The value of attribute to.



12505
12506
12507
12508
12509
# File 'lib/ovirtsdk4/types.rb', line 12505

def initialize(opts = {})
  super(opts)
  self.from = opts[:from]
  self.to = opts[:to]
end

Instance Method Details

- (String) from

Returns the value of the from attribute.

Returns:

  • (String)


12462
12463
12464
# File 'lib/ovirtsdk4/types.rb', line 12462

def from
  return @from
end

- (Object) from=(value)

Sets the value of the from attribute.

Parameters:

  • value (String)


12471
12472
12473
# File 'lib/ovirtsdk4/types.rb', line 12471

def from=(value)
  @from = value
end

- (String) to

Returns the value of the to attribute.

Returns:

  • (String)


12480
12481
12482
# File 'lib/ovirtsdk4/types.rb', line 12480

def to
  return @to
end

- (Object) to=(value)

Sets the value of the to attribute.

Parameters:

  • value (String)


12489
12490
12491
# File 'lib/ovirtsdk4/types.rb', line 12489

def to=(value)
  @to = value
end