Sha256: 8272151db118fda7f599ba74d314b7cde2f8d4ef79fe3a878d44646c5e656db6
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ideal-mollie-0.0.3 | lib/ideal-mollie/bank.rb |