diff options
| author | Fuwn <[email protected]> | 2024-05-26 18:01:25 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-26 18:01:25 -0700 |
| commit | fa3595d69f817ad1a67b7189ed65dbde1ba9f77d (patch) | |
| tree | ae85e0ba5f132ce89021cc1e4bcea4e642ffee6c /source/member.cc | |
| download | cst_136_assignment_eight-fa3595d69f817ad1a67b7189ed65dbde1ba9f77d.tar.xz cst_136_assignment_eight-fa3595d69f817ad1a67b7189ed65dbde1ba9f77d.zip | |
feat: initial commit
Diffstat (limited to 'source/member.cc')
| -rw-r--r-- | source/member.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/source/member.cc b/source/member.cc new file mode 100644 index 0000000..0e8a41c --- /dev/null +++ b/source/member.cc @@ -0,0 +1,23 @@ +#include <book_store/book.hh> +#include <book_store/member.hh> +#include <book_store/price.hh> + +namespace book_store::consumer { +using namespace product; + +auto member::books_bought() const noexcept -> book::size_type { + return this->_books_bought; +} + +auto member::amount_spent() const noexcept -> price::usd { + return this->_amount_spent; +} + +auto member::books_bought(book::size_type books_bought) noexcept -> void { + this->_books_bought = books_bought; +} + +auto member::amount_spent(price::usd amount_spent) noexcept -> void { + this->_amount_spent = amount_spent; +} +} // namespace book_store::consumer |