class Docdata::Bank
Object
representing a “Bank” object with attributes provided by Mollie
@example
Bank.new({ :id => "0031", :name => "ABN AMRO" })
Attributes
id[RW]
@return [String] The id of the bank provided by Mollie.
name[RW]
@return [String] The name of the bank.
Public Class Methods
new(values=nil)
click to toggle source
Initializer to transform a Hash
into an Bank
object
@param [Hash] values
# File lib/docdata/bank.rb, line 20 def initialize(values=nil) return if values.nil? @id = values[:id].to_s @name = values[:name].to_s end