Class: Rgltf::Asset
- Inherits:
-
Properties::Base
- Object
- Properties::Base
- Rgltf::Asset
- Defined in:
- lib/rgltf/properties/asset.rb
Instance Attribute Summary collapse
-
#copyright ⇒ Object
readonly
Returns the value of attribute copyright.
-
#generator ⇒ Object
readonly
Returns the value of attribute generator.
-
#min_version ⇒ Object
readonly
Returns the value of attribute min_version.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Attributes inherited from Properties::Base
#extensions, #extras, #index, #name, #owner_type, #source_json
Instance Method Summary collapse
-
#initialize(json, document:) ⇒ Asset
constructor
A new instance of Asset.
Methods inherited from Properties::Base
#extension, #nested_properties, #parse_extensions!
Constructor Details
#initialize(json, document:) ⇒ Asset
Returns a new instance of Asset.
7 8 9 10 11 12 13 |
# File 'lib/rgltf/properties/asset.rb', line 7 def initialize(json, document:) super(json, document:, owner_type: :asset) @copyright = json['copyright'] @generator = json['generator'] @version = json['version'] @min_version = json['minVersion'] end |
Instance Attribute Details
#copyright ⇒ Object (readonly)
Returns the value of attribute copyright.
5 6 7 |
# File 'lib/rgltf/properties/asset.rb', line 5 def copyright @copyright end |
#generator ⇒ Object (readonly)
Returns the value of attribute generator.
5 6 7 |
# File 'lib/rgltf/properties/asset.rb', line 5 def generator @generator end |
#min_version ⇒ Object (readonly)
Returns the value of attribute min_version.
5 6 7 |
# File 'lib/rgltf/properties/asset.rb', line 5 def min_version @min_version end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/rgltf/properties/asset.rb', line 5 def version @version end |