Class: CorePro::Models::ProgramSavings

Inherits:
JsonBase
  • Object
show all
Defined in:
lib/corepro/models/program_savings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JsonBase

#to_hash, #to_json

Constructor Details

#initializeProgramSavings

Returns a new instance of ProgramSavings.



20
21
22
23
# File 'lib/corepro/models/program_savings.rb', line 20

def initialize
  @interestRates = []
  super
end

Instance Attribute Details

#balanceLimitObject

Returns the value of attribute balanceLimit.



12
13
14
# File 'lib/corepro/models/program_savings.rb', line 12

def balanceLimit
  @balanceLimit
end

#categoryObject

Returns the value of attribute category.



10
11
12
# File 'lib/corepro/models/program_savings.rb', line 10

def category
  @category
end

#interestRatesObject

Returns the value of attribute interestRates.



13
14
15
# File 'lib/corepro/models/program_savings.rb', line 13

def interestRates
  @interestRates
end

#isExternalWithdrawEnabledObject

Returns the value of attribute isExternalWithdrawEnabled.



14
15
16
# File 'lib/corepro/models/program_savings.rb', line 14

def isExternalWithdrawEnabled
  @isExternalWithdrawEnabled
end

#isInterestEnabledObject

Returns the value of attribute isInterestEnabled.



15
16
17
# File 'lib/corepro/models/program_savings.rb', line 15

def isInterestEnabled
  @isInterestEnabled
end

#isRecurringContributionEnabledObject

Returns the value of attribute isRecurringContributionEnabled.



16
17
18
# File 'lib/corepro/models/program_savings.rb', line 16

def isRecurringContributionEnabled
  @isRecurringContributionEnabled
end

#perTransactionDepositLimitObject

Returns the value of attribute perTransactionDepositLimit.



17
18
19
# File 'lib/corepro/models/program_savings.rb', line 17

def perTransactionDepositLimit
  @perTransactionDepositLimit
end

#perTransactionWithdrawLimitObject

Returns the value of attribute perTransactionWithdrawLimit.



18
19
20
# File 'lib/corepro/models/program_savings.rb', line 18

def perTransactionWithdrawLimit
  @perTransactionWithdrawLimit
end

#typeObject

Returns the value of attribute type.



11
12
13
# File 'lib/corepro/models/program_savings.rb', line 11

def type
  @type
end

Instance Method Details

#from_json!(json, classDefs) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/corepro/models/program_savings.rb', line 25

def from_json! json, classDefs
  classDefs = classDefs || {}
  classDefs['balanceLimit'] = CorePro::Models::ProgramLimit
  classDefs['interestRates'] = CorePro::Models::ProgramInterestRate
  classDefs['perTransactionDepositLimit'] = CorePro::Models::ProgramLimit
  classDefs['perTransactionWithdrawLimit'] = CorePro::Models::ProgramLimit

  super json, classDefs
end

#is_hash?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/corepro/models/program_savings.rb', line 7

def is_hash?
  true
end