Class: Google::Apis::GameservicesV1::OperationStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationStatus

Returns a new instance of OperationStatus.



1472
1473
1474
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1472

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

Instance Attribute Details

#doneBoolean Also known as: done?

Output only. Whether the operation is done or still in progress. Corresponds to the JSON property done

Returns:

  • (Boolean)


1459
1460
1461
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1459

def done
  @done
end

#error_codeString

The error code in case of failures. Corresponds to the JSON property errorCode

Returns:

  • (String)


1465
1466
1467
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1465

def error_code
  @error_code
end

#error_messageString

The human-readable error message. Corresponds to the JSON property errorMessage

Returns:

  • (String)


1470
1471
1472
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1470

def error_message
  @error_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1477
1478
1479
1480
1481
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1477

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