Class: FidorApi::Transfer::Base
- Inherits:
-
Connectivity::Resource
- Object
- Connectivity::Resource
- FidorApi::Transfer::Base
- Defined in:
- lib/fidor_api/transfer/base.rb
Direct Known Subclasses
ACH, BankInternal, FPS, Internal, P2pAccountNumber, P2pPhone, P2pUsername, SEPA, Swift, Utility
Instance Attribute Summary collapse
-
#confirmable_action ⇒ Object
Returns the value of attribute confirmable_action.
Attributes inherited from Connectivity::Resource
Instance Method Summary collapse
Methods inherited from Connectivity::Resource
all, find, #initialize, model_name, #persisted?, #reload, #update_attributes
Constructor Details
This class inherits a constructor from FidorApi::Connectivity::Resource
Instance Attribute Details
#confirmable_action ⇒ Object
Returns the value of attribute confirmable_action.
6 7 8 |
# File 'lib/fidor_api/transfer/base.rb', line 6 def confirmable_action @confirmable_action end |
Instance Method Details
#needs_confirmation? ⇒ Boolean
13 14 15 |
# File 'lib/fidor_api/transfer/base.rb', line 13 def needs_confirmation? self.confirmable_action.present? end |
#save ⇒ Object
8 9 10 11 |
# File 'lib/fidor_api/transfer/base.rb', line 8 def save fail InvalidRecordError unless valid? super end |