Skip to content

Commit

Permalink
Add Bill::User#billing_details abstract method
Browse files Browse the repository at this point in the history
  • Loading branch information
akadusei committed Jul 27, 2024
1 parent 1825877 commit 927e39e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased] -

### Added
- Add `Bill::User#billing_details` abstract method

### Changed
- Upgrade GitHub actions
- Limit description lengths to mitigate potential DoS
Expand Down
2 changes: 1 addition & 1 deletion spec/support/app/src/models/user.cr
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class User < BaseModel
"User ##{id}"
end

def billing_details
def billing_details : String
<<-TEXT
#{full_name}
<#{email}>
Expand Down
2 changes: 2 additions & 0 deletions src/bill/models/user.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module Bill::User
abstract def billing_details : String

macro included
end
end

0 comments on commit 927e39e

Please sign in to comment.