Module: DynamoRecord::Finders::ClassMethods
- Defined in:
- lib/dynamo_record/finders.rb
Instance Method Summary collapse
Instance Method Details
#find(id) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/dynamo_record/finders.rb', line 6 def find(id) response = client.get_item( table_name: table_name, key: { id: id } ) response.item ? from_database(response.item) : nil end |