Skip to content

Commit

Permalink
Crankshaft[BU000003FYZAVC] Client - Ruby @ 2017-02-17 18:34:40 +0000
Browse files Browse the repository at this point in the history
  • Loading branch information
Crankshaft Robot committed Feb 17, 2017
1 parent 877bbbb commit cf2bd4c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions lib/gocardless_pro/resources/subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ module Resources
class Subscription
attr_reader :amount

attr_reader :count

attr_reader :created_at

attr_reader :currency
Expand Down Expand Up @@ -117,7 +115,6 @@ def initialize(object, response = nil)
@object = object

@amount = object['amount']
@count = object['count']
@created_at = object['created_at']
@currency = object['currency']
@day_of_month = object['day_of_month']
Expand Down
4 changes: 0 additions & 4 deletions spec/resources/subscription_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

'amount' => 'amount-input',

'count' => 'count-input',

'created_at' => 'created_at-input',

'currency' => 'currency-input',
Expand Down Expand Up @@ -51,8 +49,6 @@

expect(resource.amount).to eq('amount-input')

expect(resource.count).to eq('count-input')

expect(resource.created_at).to eq('created_at-input')

expect(resource.currency).to eq('currency-input')
Expand Down
13 changes: 0 additions & 13 deletions spec/services/subscriptions_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
{

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand All @@ -40,7 +39,6 @@
'subscriptions' => {

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand All @@ -66,7 +64,6 @@
{

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand Down Expand Up @@ -129,7 +126,6 @@
'subscriptions' => [{

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand Down Expand Up @@ -162,8 +158,6 @@

expect(get_list_response.records.first.amount).to eq('amount-input')

expect(get_list_response.records.first.count).to eq('count-input')

expect(get_list_response.records.first.created_at).to eq('created_at-input')

expect(get_list_response.records.first.currency).to eq('currency-input')
Expand Down Expand Up @@ -209,7 +203,6 @@
'subscriptions' => [{

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand Down Expand Up @@ -241,7 +234,6 @@
'subscriptions' => [{

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand Down Expand Up @@ -289,7 +281,6 @@
'subscriptions' => {

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand Down Expand Up @@ -331,7 +322,6 @@
'subscriptions' => {

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand Down Expand Up @@ -395,7 +385,6 @@
'subscriptions' => {

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand Down Expand Up @@ -437,7 +426,6 @@
'subscriptions' => {

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand Down Expand Up @@ -484,7 +472,6 @@
'subscriptions' => {

'amount' => 'amount-input',
'count' => 'count-input',
'created_at' => 'created_at-input',
'currency' => 'currency-input',
'day_of_month' => 'day_of_month-input',
Expand Down

0 comments on commit cf2bd4c

Please sign in to comment.