Class: AuctionFunCore::Repos::BidContext::BidRepository
- Inherits:
-
Object
- Object
- AuctionFunCore::Repos::BidContext::BidRepository
- Defined in:
- lib/auction_fun_core/repos/bid_context/bid_repository.rb
Overview
Repository for handling repository operations related to bids.
This repository provides methods to interact with bid data in the database, including creating, updating, deleting, and retrieving bids.
Instance Method Summary collapse
-
#count ⇒ Integer
Returns the total number of bids in the database.
-
#exists?(conditions) ⇒ Boolean
Checks if a bid exists based on the provided conditions.
Instance Method Details
#count ⇒ Integer
Returns the total number of bids in the database.
34 35 36 |
# File 'lib/auction_fun_core/repos/bid_context/bid_repository.rb', line 34 def count bids.count end |
#exists?(conditions) ⇒ Boolean
Checks if a bid exists based on the provided conditions.
43 44 45 |
# File 'lib/auction_fun_core/repos/bid_context/bid_repository.rb', line 43 def exists?(conditions) bids.exist?(conditions) end |