Class: Nfe::Generated::CalculoImpostosV1::Ipi
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::CalculoImpostosV1::Ipi
- Defined in:
- lib/nfe/generated/calculo_impostos_v1/ipi.rb,
sig/nfe/generated/calculo_impostos_v1/ipi.rbs
Instance Attribute Summary collapse
-
#c_enq ⇒ Object
readonly
Returns the value of attribute c_enq.
-
#cst ⇒ Object
readonly
Returns the value of attribute cst.
-
#p_ipi ⇒ Object
readonly
Returns the value of attribute p_ipi.
-
#q_unid ⇒ Object
readonly
Returns the value of attribute q_unid.
-
#v_bc ⇒ Object
readonly
Returns the value of attribute v_bc.
-
#v_ipi ⇒ Object
readonly
Returns the value of attribute v_ipi.
-
#v_unid ⇒ Object
readonly
Returns the value of attribute v_unid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Ipi
constructor
A new instance of Ipi.
Constructor Details
#initialize ⇒ Ipi
Returns a new instance of Ipi.
17 |
# File 'sig/nfe/generated/calculo_impostos_v1/ipi.rbs', line 17
def initialize: (?c_enq: String?, ?cst: String?, ?p_ipi: String?, ?q_unid: String?, ?v_bc: String?, ?v_ipi: String?, ?v_unid: String?) -> void
|
Instance Attribute Details
#c_enq ⇒ Object (readonly)
Returns the value of attribute c_enq
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ipi.rb', line 9 def c_enq @c_enq end |
#cst ⇒ Object (readonly)
Returns the value of attribute cst
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ipi.rb', line 9 def cst @cst end |
#p_ipi ⇒ Object (readonly)
Returns the value of attribute p_ipi
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ipi.rb', line 9 def p_ipi @p_ipi end |
#q_unid ⇒ Object (readonly)
Returns the value of attribute q_unid
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ipi.rb', line 9 def q_unid @q_unid end |
#v_bc ⇒ Object (readonly)
Returns the value of attribute v_bc
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ipi.rb', line 9 def v_bc @v_bc end |
#v_ipi ⇒ Object (readonly)
Returns the value of attribute v_ipi
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ipi.rb', line 9 def v_ipi @v_ipi end |
#v_unid ⇒ Object (readonly)
Returns the value of attribute v_unid
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ipi.rb', line 9 def v_unid @v_unid end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/nfe/generated/calculo_impostos_v1/ipi.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( c_enq: payload["cEnq"], cst: payload["cst"], p_ipi: payload["pIPI"], q_unid: payload["qUnid"], v_bc: payload["vBC"], v_ipi: payload["vIPI"], v_unid: payload["vUnid"], ) end |
.new ⇒ instance
16 |
# File 'sig/nfe/generated/calculo_impostos_v1/ipi.rbs', line 16
def self.new: (?c_enq: String?, ?cst: String?, ?p_ipi: String?, ?q_unid: String?, ?v_bc: String?, ?v_ipi: String?, ?v_unid: String?) -> instance
|