lib/dynamoid/finders.rb
# Find one object directly by id.
#
# @param [String] id the id of the object to find
#
# @return [Dynamoid::Document] the found object, or nil if nothing was found
#
# @since 0.2.0
Find one object directly by id.
Find one object directly by id .
def find_by_id(id, options = {})
        if item = Dynamoid.adapter.read(self.table_name, id, options)
          from_database(item)
        else
          nil
        end
      end
def find_by_id ( id , options = { } ) if item = Dynamoid . adapter . read ( self . table_name , id , options ) from_database ( item ) else nil end end
Find one object directly by id.
Find one object directly by id .
the found object, or nil if nothing was found
the found object or nil if nothing was found
Dynamoid::Document
id
options
id the id of the object to find
id the id of the object to find
since
None