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.
173 174 175 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 173 def initialize(card) @card = card end |
Instance Method Details
#card_number ⇒ Object
181 182 183 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 181 def card_number card.card_number end |
#cvv ⇒ Object
193 194 195 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 193 def cvv card.cvv end |
#expiry_month ⇒ Object
185 186 187 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 185 def expiry_month card.expiry_month end |
#expiry_year ⇒ Object
189 190 191 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 189 def expiry_year card.expiry_year end |
#mocked_sandbox_payment_account_id ⇒ Object
197 198 199 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 197 def mocked_sandbox_payment_account_id card.mocked_sandbox_payment_account_id end |
#payment_account_id ⇒ Object
177 178 179 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 177 def payment_account_id @payment_account_id ||= get_payment_account_id end |