Class: Rawscsi::IndexHelpers::SdfDelete

Inherits:
Object
  • Object
show all
Defined in:
lib/rawscsi/index_helpers/sdf_delete.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#buildObject



10
11
12
13
14
15
# File 'lib/rawscsi/index_helpers/sdf_delete.rb', line 10

def build
  {
    :type => "delete",
    :id => doc_id
  }
end