Class: Nfe::Generated::CalculoImpostosV1::Cofins
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::CalculoImpostosV1::Cofins
- Defined in:
- lib/nfe/generated/calculo_impostos_v1/cofins.rb,
sig/nfe/generated/calculo_impostos_v1/cofins.rbs
Instance Attribute Summary collapse
-
#cst ⇒ Object
readonly
Returns the value of attribute cst.
-
#p_cofins ⇒ Object
readonly
Returns the value of attribute p_cofins.
-
#q_bcprod ⇒ Object
readonly
Returns the value of attribute q_bcprod.
-
#v_aliq_prod ⇒ Object
readonly
Returns the value of attribute v_aliq_prod.
-
#v_bc ⇒ Object
readonly
Returns the value of attribute v_bc.
-
#v_cofins ⇒ Object
readonly
Returns the value of attribute v_cofins.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Cofins
constructor
A new instance of Cofins.
Constructor Details
#initialize ⇒ Cofins
Returns a new instance of Cofins.
16 |
# File 'sig/nfe/generated/calculo_impostos_v1/cofins.rbs', line 16
def initialize: (?cst: String?, ?p_cofins: String?, ?q_bcprod: String?, ?v_aliq_prod: String?, ?v_bc: String?, ?v_cofins: String?) -> void
|
Instance Attribute Details
#cst ⇒ Object (readonly)
Returns the value of attribute cst
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/cofins.rb', line 9 def cst @cst end |
#p_cofins ⇒ Object (readonly)
Returns the value of attribute p_cofins
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/cofins.rb', line 9 def p_cofins @p_cofins end |
#q_bcprod ⇒ Object (readonly)
Returns the value of attribute q_bcprod
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/cofins.rb', line 9 def q_bcprod @q_bcprod end |
#v_aliq_prod ⇒ Object (readonly)
Returns the value of attribute v_aliq_prod
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/cofins.rb', line 9 def v_aliq_prod @v_aliq_prod end |
#v_bc ⇒ Object (readonly)
Returns the value of attribute v_bc
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/cofins.rb', line 9 def v_bc @v_bc end |
#v_cofins ⇒ Object (readonly)
Returns the value of attribute v_cofins
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/cofins.rb', line 9 def v_cofins @v_cofins end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nfe/generated/calculo_impostos_v1/cofins.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( cst: payload["cst"], p_cofins: payload["pCOFINS"], q_bcprod: payload["qBCProd"], v_aliq_prod: payload["vAliqProd"], v_bc: payload["vBC"], v_cofins: payload["vCOFINS"], ) end |
.new ⇒ instance
15 |
# File 'sig/nfe/generated/calculo_impostos_v1/cofins.rbs', line 15
def self.new: (?cst: String?, ?p_cofins: String?, ?q_bcprod: String?, ?v_aliq_prod: String?, ?v_bc: String?, ?v_cofins: String?) -> instance
|