Class: Google::Apis::PolyV1::UserAsset

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/poly_v1/classes.rb,
generated/google/apis/poly_v1/representations.rb,
generated/google/apis/poly_v1/representations.rb

Overview

Data about the user's asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserAsset

Returns a new instance of UserAsset



577
578
579
# File 'generated/google/apis/poly_v1/classes.rb', line 577

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#assetGoogle::Apis::PolyV1::Asset

Represents and describes an asset in the Poly library. An asset is a 3D model or scene created using Tilt Brush, Blocks, or any 3D program that produces a file that can be upload to Poly. Corresponds to the JSON property asset



575
576
577
# File 'generated/google/apis/poly_v1/classes.rb', line 575

def asset
  @asset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



582
583
584
# File 'generated/google/apis/poly_v1/classes.rb', line 582

def update!(**args)
  @asset = args[:asset] if args.key?(:asset)
end