Class: WebPay::Mock::FakeEntity::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/webpay/mock/fake_entity/account.rb

Instance Attribute Summary

Attributes inherited from Base

#builder

Instance Method Summary collapse

Methods inherited from Base

#build, #initialize, #override, #set_params

Methods included from WebPay::Mock::FakeEntity

#card_from, #charge_from, #customer_from, #fake_account, #fake_card, #fake_event, #fake_fingerprint, #fake_list, #recursion_from, #token_from

Methods included from Util

#stringify_keys

Constructor Details

This class inherits a constructor from WebPay::Mock::FakeEntity::Base

Instance Method Details

#basic_attributesObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/webpay/mock/fake_entity/account.rb', line 7

def basic_attributes
  {
    charge_enabled: false,
    currencies_supported: ["jpy"],
    details_submitted: false,
    email: '[email protected]',
    statement_descriptor: nil,
    card_types_supported: ["Visa", "American Express", "MasterCard", "JCB", "Diners Club"],
  }
end

#conversion(key, value) ⇒ Object



22
23
# File 'lib/webpay/mock/fake_entity/account.rb', line 22

def conversion(key, value)
end

#copy_attributesObject



18
19
20
# File 'lib/webpay/mock/fake_entity/account.rb', line 18

def copy_attributes
  []
end

#object_nameObject



3
4
5
# File 'lib/webpay/mock/fake_entity/account.rb', line 3

def object_name
  'account'
end