Class: ODDB::Remote::Util::M10lDocument

Inherits:
Object
  • Object
show all
Defined in:
lib/oddb/remote/util/m10l_document.rb

Instance Attribute Summary

Attributes inherited from Object

#remote, #source

Instance Method Summary collapse

Methods inherited from Object

delegate, #initialize, #uid

Constructor Details

This class inherits a constructor from ODDB::Remote::Object

Instance Method Details

#descriptionsObject



11
12
13
14
15
16
17
18
# File 'lib/oddb/remote/util/m10l_document.rb', line 11

def descriptions
  @descriptions or begin
    @descriptions = @remote.descriptions.inject({}) do |memo, (key, doc)|
      memo.store key.to_s, Remote::Text::Document.new(@source, doc)
      memo
    end
  end
end