Class Moped::Operation::Write
In: lib/moped/operation/write.rb
Parent: Object

Encapsulates behaviour for write operations.

@since 2.0.0

Methods

execute   new  

Attributes

concern  [R]  @!attribute concern
  @return [ Object ] The configured write concern.

@!attribute database

  @return [ String ] The database the read is from.

@!attribute operation

  @return [ Protocol::Insert, Protocol::Update, Protocol::Delete ]
    The write operation.
database  [R]  @!attribute concern
  @return [ Object ] The configured write concern.

@!attribute database

  @return [ String ] The database the read is from.

@!attribute operation

  @return [ Protocol::Insert, Protocol::Update, Protocol::Delete ]
    The write operation.
operation  [R]  @!attribute concern
  @return [ Object ] The configured write concern.

@!attribute database

  @return [ String ] The database the read is from.

@!attribute operation

  @return [ Protocol::Insert, Protocol::Update, Protocol::Delete ]
    The write operation.

Public Class methods

Instantiate the write operation.

@example Instantiate the write.

  Write.new(insert)

@param [ Protocol::Insert, Protocol::Update, Protocol::Delete ] operation

  The write operation.

@since 2.0.0

Public Instance methods

Execute the write operation on the provided node. If the write concern is propagating, then the gle command will be piggybacked onto the initial write operation.

@example Execute the operation.

  write.execute(node)

@param [ Node ] node The node to execute the write on.

@since 2.0.0

[Validate]