From cd05d363f89682aabcfa324c4ea917bb2204cf42 Mon Sep 17 00:00:00 2001 From: Pavel Pravosud <50116779+pavel-stripe@users.noreply.github.com> Date: Mon, 6 May 2019 17:34:23 -0700 Subject: [PATCH] More simplifying inheritance (#775) --- lib/stripe/radar/value_list_item.rb | 2 +- lib/stripe/sigma/scheduled_query_run.rb | 2 +- test/stripe/api_resource_test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/stripe/radar/value_list_item.rb b/lib/stripe/radar/value_list_item.rb index 7e4f0b9e2..6000ddd84 100644 --- a/lib/stripe/radar/value_list_item.rb +++ b/lib/stripe/radar/value_list_item.rb @@ -2,7 +2,7 @@ module Stripe module Radar - class ValueListItem < Stripe::APIResource + class ValueListItem < APIResource extend Stripe::APIOperations::Create include Stripe::APIOperations::Delete extend Stripe::APIOperations::List diff --git a/lib/stripe/sigma/scheduled_query_run.rb b/lib/stripe/sigma/scheduled_query_run.rb index e2a267538..1ccfe1455 100644 --- a/lib/stripe/sigma/scheduled_query_run.rb +++ b/lib/stripe/sigma/scheduled_query_run.rb @@ -2,7 +2,7 @@ module Stripe module Sigma - class ScheduledQueryRun < Stripe::APIResource + class ScheduledQueryRun < APIResource extend Stripe::APIOperations::List OBJECT_NAME = "scheduled_query_run".freeze diff --git a/test/stripe/api_resource_test.rb b/test/stripe/api_resource_test.rb index d2eb4fc34..df8c752d5 100644 --- a/test/stripe/api_resource_test.rb +++ b/test/stripe/api_resource_test.rb @@ -5,7 +5,7 @@ module Stripe class ApiResourceTest < Test::Unit::TestCase - class NestedTestAPIResource < Stripe::APIResource + class NestedTestAPIResource < APIResource save_nested_resource :external_account end