Method: ATProto::Writes::Collector#create

Defined in:
lib/at_protocol/writes.rb

#create(hash) ⇒ Object



124
125
126
127
128
129
130
# File 'lib/at_protocol/writes.rb', line 124

def create(hash)
  @writes << Write.new({
    action: Write::Action::Create,
    value: hash,
    collection: hash["$type"] || hash[:"$type"],
  })
end