Skip to content

Commit

Permalink
Manual changes, lint, rubocop, amount
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe committed Nov 19, 2024
1 parent b50f501 commit 8910a83
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ Metrics/ParameterLists:
- "lib/stripe/api_operations/request.rb"
- "lib/stripe/stripe_object.rb"

Naming/VariableNumber:
# We use a variety of variable number syntaxes
Enabled: false

Style/AccessModifierDeclarations:
EnforcedStyle: inline

Expand Down
9 changes: 9 additions & 0 deletions lib/stripe/resources/v2/amount.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

module Stripe
module V2
class Amount
attr_reader :value, :currency
end
end
end
12 changes: 12 additions & 0 deletions rbi/stripe/resources/v2/amount.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

module Stripe
module V2
class Amount
sig { returns(Integer) }
attr_reader :value
sig {returns(String)}
attr_reader :currency
end
end
end

0 comments on commit 8910a83

Please sign in to comment.