Class: BaaChan::Costs

Inherits:
Object
  • Object
show all
Defined in:
lib/baa_chan/costs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(brokerage, clearing_fee, registration_fee, emoluments, options) ⇒ Costs

Returns a new instance of Costs.



8
9
10
11
12
13
14
15
16
# File 'lib/baa_chan/costs.rb', line 8

def initialize(brokerage, clearing_fee, registration_fee, emoluments, options)
  @brokerage = brokerage
  @clearing_fee = clearing_fee
  @registration_fee = registration_fee
  @emoluments = emoluments
  @iss = options[:iss] || 0.0
  @irrf = options[:irrf] || 0.0
  @pis_cofins = options[:pis_cofins] || 0.0
end

Instance Attribute Details

#brokerageObject

Returns the value of attribute brokerage.



5
6
7
# File 'lib/baa_chan/costs.rb', line 5

def brokerage
  @brokerage
end

#clearing_feeObject

Returns the value of attribute clearing_fee.



5
6
7
# File 'lib/baa_chan/costs.rb', line 5

def clearing_fee
  @clearing_fee
end

#emolumentsObject

Returns the value of attribute emoluments.



5
6
7
# File 'lib/baa_chan/costs.rb', line 5

def emoluments
  @emoluments
end

#irrfObject

Returns the value of attribute irrf.



5
6
7
# File 'lib/baa_chan/costs.rb', line 5

def irrf
  @irrf
end

#issObject

Returns the value of attribute iss.



5
6
7
# File 'lib/baa_chan/costs.rb', line 5

def iss
  @iss
end

#pis_cofinsObject

Returns the value of attribute pis_cofins.



5
6
7
# File 'lib/baa_chan/costs.rb', line 5

def pis_cofins
  @pis_cofins
end

#registration_feeObject

Returns the value of attribute registration_fee.



5
6
7
# File 'lib/baa_chan/costs.rb', line 5

def registration_fee
  @registration_fee
end