Class: BaaChan::Costs
- Inherits:
-
Object
- Object
- BaaChan::Costs
- Defined in:
- lib/baa_chan/costs.rb
Instance Attribute Summary collapse
-
#brokerage ⇒ Object
Returns the value of attribute brokerage.
-
#clearing_fee ⇒ Object
Returns the value of attribute clearing_fee.
-
#emoluments ⇒ Object
Returns the value of attribute emoluments.
-
#irrf ⇒ Object
Returns the value of attribute irrf.
-
#iss ⇒ Object
Returns the value of attribute iss.
-
#pis_cofins ⇒ Object
Returns the value of attribute pis_cofins.
-
#registration_fee ⇒ Object
Returns the value of attribute registration_fee.
Instance Method Summary collapse
-
#initialize(brokerage, clearing_fee, registration_fee, emoluments, options) ⇒ Costs
constructor
A new instance of Costs.
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, ) @brokerage = brokerage @clearing_fee = clearing_fee @registration_fee = registration_fee @emoluments = emoluments @iss = [:iss] || 0.0 @irrf = [:irrf] || 0.0 @pis_cofins = [:pis_cofins] || 0.0 end |
Instance Attribute Details
#brokerage ⇒ Object
Returns the value of attribute brokerage.
5 6 7 |
# File 'lib/baa_chan/costs.rb', line 5 def brokerage @brokerage end |
#clearing_fee ⇒ Object
Returns the value of attribute clearing_fee.
5 6 7 |
# File 'lib/baa_chan/costs.rb', line 5 def clearing_fee @clearing_fee end |
#emoluments ⇒ Object
Returns the value of attribute emoluments.
5 6 7 |
# File 'lib/baa_chan/costs.rb', line 5 def emoluments @emoluments end |
#irrf ⇒ Object
Returns the value of attribute irrf.
5 6 7 |
# File 'lib/baa_chan/costs.rb', line 5 def irrf @irrf end |
#iss ⇒ Object
Returns the value of attribute iss.
5 6 7 |
# File 'lib/baa_chan/costs.rb', line 5 def iss @iss end |
#pis_cofins ⇒ Object
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_fee ⇒ Object
Returns the value of attribute registration_fee.
5 6 7 |
# File 'lib/baa_chan/costs.rb', line 5 def registration_fee @registration_fee end |