Class: CouchClient::AttachmentList

Inherits:
ConsistentHash show all
Defined in:
lib/couch-client/attachment_list.rb

Overview

AttachmentList prevents ConsistentHash from absorbing instances of Attachment and making them a ConsistentHash.

Instance Method Summary collapse

Methods inherited from ConsistentHash

#[]=, #default, #delete, #dup, #fetch, #key?, #merge, #regular_update, #regular_writer, #to_hash, #update, #values_at

Constructor Details

#initialize(attachments) ⇒ AttachmentList

AttachmentList is constructed with a hash of attachments.



6
7
8
# File 'lib/couch-client/attachment_list.rb', line 6

def initialize(attachments)
  self.merge!(attachments)
end