class IbanCalculator::Bank
Attributes
address[RW]
branch[RW]
branch_code[RW]
code[RW]
country[RW]
name[RW]
url[RW]
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/iban_calculator/bank.rb, line 5 def initialize(attributes = {}) self.code = attributes[:code] self.name = attributes[:name] self.country = attributes[:country] self.address = attributes[:address] self.url = attributes[:url] self.branch = attributes[:branch] self.branch_code = attributes[:branch_code] end
Public Instance Methods
as_json(opts = {})
click to toggle source
# File lib/iban_calculator/bank.rb, line 15 def as_json(opts = {}) { code: code, name: name, country: country, address: address, url: url, branch: branch, branch_code: branch_code, } end