Class: OvirtSDK4::Identified
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Action, AffinityGroup, AffinityLabel, Agent, Application, AuthorizedKey, Backup, Balance, Bookmark, Certificate, Checkpoint, Cluster, ClusterFeature, ClusterLevel, CpuProfile, DataCenter, Device, DiskAttachment, DiskProfile, Domain, Event, EventSubscription, ExternalComputeResource, ExternalDiscoveredHost, ExternalHost, ExternalHostGroup, ExternalNetworkProviderConfiguration, ExternalProvider, File, Filter, GlusterHook, GlusterMemoryPool, GlusterServerHook, GlusterVolume, GlusterVolumeProfileDetails, GraphicsConsole, Group, Hook, Host, HostCpuUnit, HostDevice, HostNic, HostStorage, Icon, Image, ImageTransfer, IscsiBond, Job, KatelloErratum, LinkLayerDiscoveryProtocolElement, MacPool, MigrationPolicy, Network, NetworkAttachment, NetworkFilter, NetworkFilterParameter, NetworkLabel, NumaNode, OpenStackImage, OpenStackNetwork, OpenStackSubnet, OpenStackVolumeType, OpenstackVolumeAuthenticationKey, OperatingSystemInfo, Permission, Permit, Product, Qos, Quota, QuotaClusterLimit, QuotaStorageLimit, ReportedDevice, Role, SchedulingPolicy, SchedulingPolicyUnit, Session, Ssh, SshPublicKey, Statistic, Step, StorageConnection, StorageConnectionExtension, StorageDomain, SystemOption, Tag, UnmanagedNetwork, User, UserOption, Vendor, Version, VmBase, VmPool, VnicProfile, Weight
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Identified
constructor
Creates a new instance of the Identified class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Identified
Creates a new instance of the OvirtSDK4::Identified class.
5809 5810 5811 5812 5813 5814 5815 |
# File 'lib/ovirtsdk4/types.rb', line 5809 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.name = opts[:name] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
5820 5821 5822 5823 5824 5825 5826 |
# File 'lib/ovirtsdk4/types.rb', line 5820 def ==(other) super && @comment == other.comment && @description == other.description && @id == other.id && @name == other.name end |
#comment ⇒ String
Returns the value of the comment attribute.
5726 5727 5728 |
# File 'lib/ovirtsdk4/types.rb', line 5726 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
5735 5736 5737 |
# File 'lib/ovirtsdk4/types.rb', line 5735 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
5744 5745 5746 |
# File 'lib/ovirtsdk4/types.rb', line 5744 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
5753 5754 5755 |
# File 'lib/ovirtsdk4/types.rb', line 5753 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
5831 5832 5833 5834 5835 5836 5837 |
# File 'lib/ovirtsdk4/types.rb', line 5831 def hash super + @comment.hash + @description.hash + @id.hash + @name.hash end |
#id ⇒ String
Returns the value of the id attribute.
5762 5763 5764 |
# File 'lib/ovirtsdk4/types.rb', line 5762 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
5771 5772 5773 |
# File 'lib/ovirtsdk4/types.rb', line 5771 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
5780 5781 5782 |
# File 'lib/ovirtsdk4/types.rb', line 5780 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
5789 5790 5791 |
# File 'lib/ovirtsdk4/types.rb', line 5789 def name=(value) @name = value end |