Class: WebPay::Mock::FakeEntity::Token
- Inherits:
-
Base
- Object
- Base
- WebPay::Mock::FakeEntity::Token
show all
- Defined in:
- lib/webpay/mock/fake_entity/token.rb
Instance Attribute Summary
Attributes inherited from Base
#builder
Instance Method Summary
collapse
Methods inherited from Base
#build, #initialize, #override, #set_params
#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
Instance Method Details
#basic_attributes ⇒ Object
7
8
9
|
# File 'lib/webpay/mock/fake_entity/token.rb', line 7
def basic_attributes
{ card: fake_card, used: false }
end
|
#conversion(key, value) ⇒ Object
15
16
17
18
19
|
# File 'lib/webpay/mock/fake_entity/token.rb', line 15
def conversion(key, value)
if key == 'card'
{ card: card_from(value) }
end
end
|
#copy_attributes ⇒ Object
11
12
13
|
# File 'lib/webpay/mock/fake_entity/token.rb', line 11
def copy_attributes
[]
end
|
#object_name ⇒ Object
3
4
5
|
# File 'lib/webpay/mock/fake_entity/token.rb', line 3
def object_name
'token'
end
|