Class: BasecommSdk::PushNotification
- Defined in:
- lib/basecomm_sdk/push_notification.rb
Constant Summary collapse
- TYPE =
{ xs_pn_ach_change: 'ACH CHANGE', xs_pn_settlement_batch_change: 'SETTLEMENT BATCH CHANGE' }
Instance Attribute Summary collapse
-
#bank_account_transaction ⇒ Object
Returns the value of attribute bank_account_transaction.
-
#settlement_batch ⇒ Object
Returns the value of attribute settlement_batch.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from Base
attr_accessor, attributes, #attributes, #format, #initialize, json_prefix, #messages, #qualified_attributes, #qualified_key, #status_description, #status_name, #to_json
Constructor Details
This class inherits a constructor from BasecommSdk::Base
Instance Attribute Details
#bank_account_transaction ⇒ Object
Returns the value of attribute bank_account_transaction.
8 9 10 |
# File 'lib/basecomm_sdk/push_notification.rb', line 8 def bank_account_transaction @bank_account_transaction end |
#settlement_batch ⇒ Object
Returns the value of attribute settlement_batch.
8 9 10 |
# File 'lib/basecomm_sdk/push_notification.rb', line 8 def settlement_batch @settlement_batch end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/basecomm_sdk/push_notification.rb', line 8 def type @type end |
Instance Method Details
#ach? ⇒ Boolean
14 15 16 |
# File 'lib/basecomm_sdk/push_notification.rb', line 14 def ach? type == TYPE[:xs_pn_ach_change] end |
#batch? ⇒ Boolean
18 19 20 |
# File 'lib/basecomm_sdk/push_notification.rb', line 18 def batch? type == TYPE[:xs_pn_settlement_batch_change] end |
#json_prefix ⇒ Object
10 11 12 |
# File 'lib/basecomm_sdk/push_notification.rb', line 10 def json_prefix :push_notification end |