Class: Google::Apis::DatastoreV1beta2::EntityResult
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta2::EntityResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datastore_v1beta2/classes.rb,
generated/google/apis/datastore_v1beta2/representations.rb,
generated/google/apis/datastore_v1beta2/representations.rb
Overview
The result of fetching an entity from the datastore.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ EntityResult
constructor
A new instance of EntityResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EntityResult
Returns a new instance of EntityResult
243 244 245 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 243 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entity ⇒ Google::Apis::DatastoreV1beta2::Entity
An entity.
Corresponds to the JSON property entity
241 242 243 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 241 def entity @entity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
248 249 250 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 248 def update!(**args) @entity = args[:entity] if args.key?(:entity) end |