Sha256: 36df54043cc5e6fc57c8afd0bec5b93b944e851ef599f7d682533efab70db6c6
Contents?: true
Size: 594 Bytes
Versions: 14
Compression:
Stored size: 594 Bytes
Contents
module Docdata # # Object representing a "Bank" object with attributes provided by Mollie # # @example # Bank.new({ # :id => "0031", # :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[:id].to_s @name = values[:name].to_s end end end
Version data entries
14 entries across 14 versions & 1 rubygems