Class: Vantiv::MockedSandbox::CardforFixtureGeneration

Inherits:
Object
  • Object
show all
Defined in:
lib/vantiv/mocked_sandbox/fixture_generator.rb

Overview

The similarities between this and Vantiv::TestAccount are too great.

They ought to be cleaned up and merged

Instance Method Summary collapse

Constructor Details

#initialize(card) ⇒ CardforFixtureGeneration

Returns a new instance of CardforFixtureGeneration.



173
174
175
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 173

def initialize(card)
  @card = card
end

Instance Method Details

#card_numberObject



181
182
183
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 181

def card_number
  card.card_number
end

#cvvObject



193
194
195
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 193

def cvv
  card.cvv
end

#expiry_monthObject



185
186
187
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 185

def expiry_month
  card.expiry_month
end

#expiry_yearObject



189
190
191
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 189

def expiry_year
  card.expiry_year
end

#mocked_sandbox_payment_account_idObject



197
198
199
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 197

def 
  card.
end

#payment_account_idObject



177
178
179
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 177

def 
  @payment_account_id ||= 
end