Skip to content

Commit 5734546

Browse files
feat: cleaned the pr
1 parent 9699f3f commit 5734546

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/services/billing/calendar.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def initialize(anchor_date:, interval:, timezone:)
1818
def interval_containing(timestamp)
1919
index = interval_index(timestamp)
2020

21-
interval_with_index_start_at(index)...interval_with_index_start_at(index + 1)
21+
interval_with_index_starts_at(index)...interval_with_index_starts_at(index + 1)
2222
end
2323

2424
# Fraction of the interval containing `from` that the half-open window [from, to) covers.
@@ -51,9 +51,9 @@ def interval_index(timestamp)
5151
# The boundary at position `index`
5252
#
5353
# @example anchored Jan 31, monthly
54-
# interval_with_index_start_at(1) # => Feb 28
55-
# interval_with_index_start_at(2) # => Mar 31
56-
def interval_with_index_start_at(index)
54+
# interval_with_index_starts_at(1) # => Feb 28
55+
# interval_with_index_starts_at(2) # => Mar 31
56+
def interval_with_index_starts_at(index)
5757
@boundaries ||= {}
5858
@boundaries[index] ||= interval.advance(anchor, index)
5959
end

0 commit comments

Comments
 (0)