Class: Google::Apis::DatastoreV1beta2::EntityResult

Inherits:
Object
  • Object
show all
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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#entityGoogle::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