Class: BasecommSdk::PushNotification

Inherits:
Base
  • Object
show all
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

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_transactionObject

Returns the value of attribute bank_account_transaction.



8
9
10
# File 'lib/basecomm_sdk/push_notification.rb', line 8

def 
  @bank_account_transaction
end

#settlement_batchObject

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

#typeObject

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

Returns:

  • (Boolean)


14
15
16
# File 'lib/basecomm_sdk/push_notification.rb', line 14

def ach?
  type == TYPE[:xs_pn_ach_change]
end

#batch?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/basecomm_sdk/push_notification.rb', line 18

def batch?
  type == TYPE[:xs_pn_settlement_batch_change]
end

#json_prefixObject



10
11
12
# File 'lib/basecomm_sdk/push_notification.rb', line 10

def json_prefix
  :push_notification
end