Class: MethodRuby::Resources::Simulate::Accounts

Inherits:
Object
  • Object
show all
Defined in:
lib/method_ruby/resources/simulate/accounts.rb,
lib/method_ruby/resources/simulate/accounts/card_brands.rb,
lib/method_ruby/resources/simulate/accounts/transactions.rb,
lib/method_ruby/resources/simulate/accounts/verification_sessions.rb,
lib/method_ruby/resources/simulate/accounts/verification_sessions/amounts.rb

Defined Under Namespace

Classes: CardBrands, Transactions, VerificationSessions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Accounts

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Accounts.

Parameters:



21
22
23
24
25
26
27
# File 'lib/method_ruby/resources/simulate/accounts.rb', line 21

def initialize(client:)
  @client = client
  @verification_sessions =
    MethodRuby::Resources::Simulate::Accounts::VerificationSessions.new(client: client)
  @transactions = MethodRuby::Resources::Simulate::Accounts::Transactions.new(client: client)
  @card_brands = MethodRuby::Resources::Simulate::Accounts::CardBrands.new(client: client)
end

Instance Attribute Details

#card_brandsMethodRuby::Resources::Simulate::Accounts::CardBrands (readonly)

Sandbox account simulation



16
17
18
# File 'lib/method_ruby/resources/simulate/accounts.rb', line 16

def card_brands
  @card_brands
end

#transactionsMethodRuby::Resources::Simulate::Accounts::Transactions (readonly)

Sandbox account simulation



12
13
14
# File 'lib/method_ruby/resources/simulate/accounts.rb', line 12

def transactions
  @transactions
end

#verification_sessionsMethodRuby::Resources::Simulate::Accounts::VerificationSessions (readonly)



8
9
10
# File 'lib/method_ruby/resources/simulate/accounts.rb', line 8

def verification_sessions
  @verification_sessions
end