Class: Rawscsi::IndexHelpers::SdfDelete
- Inherits:
-
Object
- Object
- Rawscsi::IndexHelpers::SdfDelete
- Defined in:
- lib/rawscsi/index_helpers/sdf_delete.rb
Instance Attribute Summary collapse
-
#obj_or_id ⇒ Object
readonly
Returns the value of attribute obj_or_id.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(obj_or_id) ⇒ SdfDelete
constructor
A new instance of SdfDelete.
Constructor Details
#initialize(obj_or_id) ⇒ SdfDelete
Returns a new instance of SdfDelete.
6 7 8 |
# File 'lib/rawscsi/index_helpers/sdf_delete.rb', line 6 def initialize(obj_or_id) @obj_or_id = obj_or_id end |
Instance Attribute Details
#obj_or_id ⇒ Object (readonly)
Returns the value of attribute obj_or_id.
4 5 6 |
# File 'lib/rawscsi/index_helpers/sdf_delete.rb', line 4 def obj_or_id @obj_or_id end |
Instance Method Details
#build ⇒ Object
10 11 12 13 14 15 |
# File 'lib/rawscsi/index_helpers/sdf_delete.rb', line 10 def build { :type => "delete", :id => doc_id } end |