类:Mongo::WriteConcern::Acknowledged
- 定义于:
- lib/ Mongo/write_concern/acknowledged.rb
Overview
已确认的写关注会针对每个写入操作提供获取最后一个错误命令以及相应的选项。
实例属性摘要
从Base继承的属性
实例方法摘要折叠
-
#已确认? ⇒ true, false
此写关注(write concern)是否已确认。
-
# get_last_error ⇒ 哈希
获取关注的获取最后一个错误命令。
-
#检查⇒ string
获取已确认的写关注(write concern)的人类可读string表示形式。
从Base继承的方法
构造函数详情
该类从Mongo::WriteConcern::Base继承了一个构造函数
实例方法详细信息
#已确认? ⇒ true , false
此写关注(write concern)是否已确认。
48 49 50 |
# File 'lib/ Mongo/write_concern/acknowledged.rb', line 48 def 已确认? true end |
#get_last_error ⇒ Hash
获取关注的获取最后一个错误命令。
34 35 36 37 38 |
# File 'lib/ Mongo/write_concern/acknowledged.rb', line 34 def get_last_error @get_last_error ||= { GET_LAST_ERROR => 1 }.合并(merge)( 选项::映射器.transform_values_to_strings() ) end |
#检查⇒ string
获取已确认的写关注(write concern)的人类可读string表示形式。
60 61 62 |
# File 'lib/ Mongo/write_concern/acknowledged.rb', line 60 def 检查 " #<Mongo::WriteConcern::Acknowledged: 0 x #{ object_id } options= #{ } > " end |