Method: Cupid::Server#objects

Defined in:
lib/cupid/server.rb

#objects(type, objects) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/cupid/server.rb', line 37

def objects(type, objects)
  {
    :objects => objects.map {|object|
      {
        :client => { 'ID' =>  },
      }.merge(object)
    },
    :attributes! => {
      :objects => { 'xsi:type' => type }
    }
  }
end