Module: Builderable

Included in:
Qif::Transaction::Builder, Qif::Transaction::Split::Builder
Defined in:
lib/qif/transaction/builderable.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
# File 'lib/qif/transaction/builderable.rb', line 2

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#_build(object) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/qif/transaction/builderable.rb', line 32

def _build(object)
  (@_builder_values||{}).each do |attribute, value|
    object.public_send("#{attribute}=", value)
  end

  object
end