Class: BnmAPI::Data::BankBaseRate

Inherits:
Struct
  • Object
show all
Defined in:
lib/bnmapi/data/bank_base_rate.rb

Overview

not sure what is the difference between landing rate and financing rate the API response some returns landing rate and some returns financing rate including both in the data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bank_codeObject

Returns the value of attribute bank_code

Returns:

  • (Object)

    the current value of bank_code



5
6
7
# File 'lib/bnmapi/data/bank_base_rate.rb', line 5

def bank_code
  @bank_code
end

#bank_nameObject

Returns the value of attribute bank_name

Returns:

  • (Object)

    the current value of bank_name



5
6
7
# File 'lib/bnmapi/data/bank_base_rate.rb', line 5

def bank_name
  @bank_name
end

#base_financing_rateObject

Returns the value of attribute base_financing_rate

Returns:

  • (Object)

    the current value of base_financing_rate



5
6
7
# File 'lib/bnmapi/data/bank_base_rate.rb', line 5

def base_financing_rate
  @base_financing_rate
end

#base_lending_rateObject

Returns the value of attribute base_lending_rate

Returns:

  • (Object)

    the current value of base_lending_rate



5
6
7
# File 'lib/bnmapi/data/bank_base_rate.rb', line 5

def base_lending_rate
  @base_lending_rate
end

#base_rateObject

Returns the value of attribute base_rate

Returns:

  • (Object)

    the current value of base_rate



5
6
7
# File 'lib/bnmapi/data/bank_base_rate.rb', line 5

def base_rate
  @base_rate
end

#effective_date_dataObject

Returns the value of attribute effective_date_data

Returns:

  • (Object)

    the current value of effective_date_data



5
6
7
# File 'lib/bnmapi/data/bank_base_rate.rb', line 5

def effective_date_data
  @effective_date_data
end

#indicative_eff_lending_rateObject

Returns the value of attribute indicative_eff_lending_rate

Returns:

  • (Object)

    the current value of indicative_eff_lending_rate



5
6
7
# File 'lib/bnmapi/data/bank_base_rate.rb', line 5

def indicative_eff_lending_rate
  @indicative_eff_lending_rate
end

#last_updated_dataObject

Returns the value of attribute last_updated_data

Returns:

  • (Object)

    the current value of last_updated_data



5
6
7
# File 'lib/bnmapi/data/bank_base_rate.rb', line 5

def last_updated_data
  @last_updated_data
end

Instance Method Details

#effective_dateObject



20
21
22
# File 'lib/bnmapi/data/bank_base_rate.rb', line 20

def effective_date
  Date.parse(effective_date_data)
end

#last_updatedObject



16
17
18
# File 'lib/bnmapi/data/bank_base_rate.rb', line 16

def last_updated
  DateTime.parse(last_updated_data)
end