Class: Google::Apis::CloudsearchV1::PossiblyTrimmedModel
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::PossiblyTrimmedModel
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
This message contains either the device model, or a prefix of the device model (AKA a trimmed device model). The "is_trimmed" field indicates which one it is.
Instance Attribute Summary collapse
-
#is_trimmed ⇒ Boolean
(also: #is_trimmed?)
Corresponds to the JSON property
isTrimmed
. -
#model ⇒ String
Corresponds to the JSON property
model
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PossiblyTrimmedModel
constructor
A new instance of PossiblyTrimmedModel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PossiblyTrimmedModel
Returns a new instance of PossiblyTrimmedModel.
15520 15521 15522 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15520 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_trimmed ⇒ Boolean Also known as: is_trimmed?
Corresponds to the JSON property isTrimmed
15512 15513 15514 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15512 def is_trimmed @is_trimmed end |
#model ⇒ String
Corresponds to the JSON property model
15518 15519 15520 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15518 def model @model end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15525 15526 15527 15528 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15525 def update!(**args) @is_trimmed = args[:is_trimmed] if args.key?(:is_trimmed) @model = args[:model] if args.key?(:model) end |