Sha256: dfcd53c57c313e6c9c515cfdeb891e8674ca3bb3bf356036e9fa526d2afe1cf0
Contents?: true
Size: 620 Bytes
Versions: 11
Compression:
Stored size: 620 Bytes
Contents
module IdealMollie # # Object representing a "Bank" object with attributes provided by Mollie # # @example # Bank.new({ # :bank_id => "0031", # :bank_name => "ABN AMRO" # }) class Bank # @return [String] The id of the bank provided by Mollie. attr_accessor :id # @return [String] The name of the bank. attr_accessor :name # # Initializer to transform a +Hash+ into an Bank object # # @param [Hash] values def initialize(values=nil) return if values.nil? @id = values["bank_id"].to_s @name = values["bank_name"].to_s end end end
Version data entries
11 entries across 11 versions & 1 rubygems