Class: OpenUSD::Composition::VariantOpinion

Inherits:
Data
  • Object
show all
Defined in:
lib/openusd/composition.rb

Overview

Internal prim-like opinion for a selected variant.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



9
10
11
# File 'lib/openusd/composition.rb', line 9

def 
  @metadata
end

#propertiesObject (readonly)

Returns the value of attribute properties

Returns:

  • (Object)

    the current value of properties



9
10
11
# File 'lib/openusd/composition.rb', line 9

def properties
  @properties
end

#type_nameObject (readonly)

Returns the value of attribute type_name

Returns:

  • (Object)

    the current value of type_name



9
10
11
# File 'lib/openusd/composition.rb', line 9

def type_name
  @type_name
end

Instance Method Details

#property_named(name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Find a property in the selected variant.



12
13
14
# File 'lib/openusd/composition.rb', line 12

def property_named(name)
  properties.find { |property| property.name == name.to_s }
end