Class: Vantiv::MockedSandbox::CardforFixtureGeneration
- Inherits:
-
Object
- Object
- Vantiv::MockedSandbox::CardforFixtureGeneration
- 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
- #card_number ⇒ Object
- #cvv ⇒ Object
- #expiry_month ⇒ Object
- #expiry_year ⇒ Object
-
#initialize(card) ⇒ CardforFixtureGeneration
constructor
A new instance of CardforFixtureGeneration.
- #mocked_sandbox_payment_account_id ⇒ Object
- #payment_account_id ⇒ Object
Constructor Details
#initialize(card) ⇒ CardforFixtureGeneration
Returns a new instance of CardforFixtureGeneration.
162 163 164 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 162 def initialize(card) @card = card end |
Instance Method Details
#card_number ⇒ Object
170 171 172 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 170 def card_number card.card_number end |
#cvv ⇒ Object
182 183 184 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 182 def cvv card.cvv end |
#expiry_month ⇒ Object
174 175 176 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 174 def expiry_month card.expiry_month end |
#expiry_year ⇒ Object
178 179 180 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 178 def expiry_year card.expiry_year end |
#mocked_sandbox_payment_account_id ⇒ Object
186 187 188 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 186 def mocked_sandbox_payment_account_id card.mocked_sandbox_payment_account_id end |
#payment_account_id ⇒ Object
166 167 168 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 166 def payment_account_id @payment_account_id ||= get_payment_account_id end |