Class: Qif::Transaction::Split::Builder

Inherits:
Object
  • Object
show all
Includes:
Builderable
Defined in:
lib/qif/transaction/split/builder.rb

Instance Method Summary collapse

Methods included from Builderable

included

Constructor Details

#initialize(transaction_builder) ⇒ Builder


7
8
9
10
# File 'lib/qif/transaction/split/builder.rb', line 7

def initialize(transaction_builder)
  @transaction_builder = transaction_builder
  @txn = Qif::Transaction::Split.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object


25
26
27
# File 'lib/qif/transaction/split/builder.rb', line 25

def method_missing(name, *args, &block)
  @transaction_builder.send(name, *args, &block)
end

Instance Method Details

#add_split(split_memo) ⇒ Object


12
13
14
# File 'lib/qif/transaction/split/builder.rb', line 12

def add_split(split_memo)
  @transaction_builder.add_split(split_memo)
end

#build_splitObject


21
22
23
# File 'lib/qif/transaction/split/builder.rb', line 21

def build_split
  @txn
end