class BoletoIntermedium::Configuration
Attributes
account[RW]
agency[R]
bank_code[R]
currency_code[R]
product[R]
system[R]
wallet[R]
Public Class Methods
new(fields = {})
click to toggle source
# File lib/BoletoIntermedium.rb, line 27 def initialize(fields = {}) @bank_code = '077' @currency_code = '9' @agency = '1' @product = '000' @wallet = '12' @system = '10' self.account = fields[:account] if fields[:account] end
Public Instance Methods
account=(str)
click to toggle source
# File lib/BoletoIntermedium.rb, line 38 def account=(str) @account = str.to_s[0..9].rjust(10, '0') end