Class: Vantiv::MockedSandbox::FixtureGenerator
- Inherits:
-
Object
- Object
- Vantiv::MockedSandbox::FixtureGenerator
- Defined in:
- lib/vantiv/mocked_sandbox/fixture_generator.rb
Instance Attribute Summary collapse
-
#card ⇒ Object
readonly
Returns the value of attribute card.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(card:) ⇒ FixtureGenerator
constructor
A new instance of FixtureGenerator.
- #run ⇒ Object
Constructor Details
#initialize(card:) ⇒ FixtureGenerator
Returns a new instance of FixtureGenerator.
12 13 14 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 12 def initialize(card:) @card = card end |
Instance Attribute Details
#card ⇒ Object (readonly)
Returns the value of attribute card.
10 11 12 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 10 def card @card end |
Class Method Details
.generate_all ⇒ Object
4 5 6 7 8 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 4 def self.generate_all TestCard.all.each do |card| new(card: card).run end end |
Instance Method Details
#run ⇒ Object
16 17 18 |
# File 'lib/vantiv/mocked_sandbox/fixture_generator.rb', line 16 def run record_tokenize_by_direct_post end |