Class: OvirtSDK4::FopStatistic
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::FopStatistic
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (FopStatistic) initialize(opts = {})
constructor
Creates a new instance of the FopStatistic class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Array<Statistic>) statistics
Returns the value of the
statistics
attribute. -
- (Object) statistics=(list)
Sets the value of the
statistics
attribute.
Methods included from Type
Constructor Details
- (FopStatistic) initialize(opts = {})
Creates a new instance of the OvirtSDK4::FopStatistic class.
2811 2812 2813 2814 2815 |
# File 'lib/ovirtsdk4/types.rb', line 2811 def initialize(opts = {}) super(opts) self.name = opts[:name] self.statistics = opts[:statistics] end |
Instance Method Details
- (String) name
Returns the value of the name
attribute.
2761 2762 2763 |
# File 'lib/ovirtsdk4/types.rb', line 2761 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
2770 2771 2772 |
# File 'lib/ovirtsdk4/types.rb', line 2770 def name=(value) @name = value end |
- (Array<Statistic>) statistics
Returns the value of the statistics
attribute.
2779 2780 2781 |
# File 'lib/ovirtsdk4/types.rb', line 2779 def statistics return @statistics end |
- (Object) statistics=(list)
Sets the value of the statistics
attribute.
2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 |
# File 'lib/ovirtsdk4/types.rb', line 2787 def statistics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Statistic.new(value) end end end @statistics = list end |