class Google::Cloud::Spanner::CommitResponse::CommitStats
Statistical information of a transaction commit.
Public Class Methods
from_grpc(grpc)
click to toggle source
@private Creates a new CommitStats
instance from a `Google::Cloud::Spanner::V1::CommitResponse::CommitStats`.
# File lib/google/cloud/spanner/commit_response/commit_stats.rb, line 44 def self.from_grpc grpc new grpc end
new(grpc)
click to toggle source
@private Creates a new CommitStats
instance.
# File lib/google/cloud/spanner/commit_response/commit_stats.rb, line 30 def initialize grpc @grpc = grpc end
Public Instance Methods
mutation_count()
click to toggle source
The total number of the mutations for the transaction. @return [Integer]
# File lib/google/cloud/spanner/commit_response/commit_stats.rb, line 36 def mutation_count @grpc.mutation_count end