Skip to content

Commit

Permalink
Simplify inheritance for nested classes (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-stripe authored and ob-stripe committed May 6, 2019
1 parent 322a8c6 commit 9832c53
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/stripe/checkout/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Checkout
class Session < Stripe::APIResource
class Session < APIResource
extend Stripe::APIOperations::Create

OBJECT_NAME = "checkout.session".freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/issuing/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Issuing
class Authorization < Stripe::APIResource
class Authorization < APIResource
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/issuing/card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Issuing
class Card < Stripe::APIResource
class Card < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/issuing/cardholder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Issuing
class Cardholder < Stripe::APIResource
class Cardholder < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/issuing/dispute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Issuing
class Dispute < Stripe::APIResource
class Dispute < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/issuing/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Issuing
class Transaction < Stripe::APIResource
class Transaction < APIResource
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/radar/value_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Radar
class ValueList < Stripe::APIResource
class ValueList < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Delete
extend Stripe::APIOperations::List
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/reporting/report_run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Reporting
class ReportRun < Stripe::APIResource
class ReportRun < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/reporting/report_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Reporting
class ReportType < Stripe::APIResource
class ReportType < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/terminal/connection_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Terminal
class ConnectionToken < Stripe::APIResource
class ConnectionToken < APIResource
extend Stripe::APIOperations::Create

OBJECT_NAME = "terminal.connection_token".freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/terminal/location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Terminal
class Location < Stripe::APIResource
class Location < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Delete
extend Stripe::APIOperations::List
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/terminal/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Stripe
module Terminal
class Reader < Stripe::APIResource
class Reader < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Delete
extend Stripe::APIOperations::List
Expand Down

0 comments on commit 9832c53

Please sign in to comment.