Class: Nfe::Generated::NfProdutoV2::Total
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfProdutoV2::Total
- Defined in:
- lib/nfe/generated/nf_produto_v2/total.rb,
sig/nfe/generated/nf_produto_v2/total.rbs
Instance Attribute Summary collapse
-
#icms ⇒ Object
readonly
Returns the value of attribute icms.
-
#issqn ⇒ Object
readonly
Returns the value of attribute issqn.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Total
constructor
A new instance of Total.
Constructor Details
#initialize ⇒ Total
Returns a new instance of Total.
12 |
# File 'sig/nfe/generated/nf_produto_v2/total.rbs', line 12
def initialize: (?icms: ICMSTotal, ?issqn: ISSQNTotal) -> void
|
Instance Attribute Details
#icms ⇒ Object (readonly)
Returns the value of attribute icms
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/total.rb', line 9 def icms @icms end |
#issqn ⇒ Object (readonly)
Returns the value of attribute issqn
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/total.rb', line 9 def issqn @issqn end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 |
# File 'lib/nfe/generated/nf_produto_v2/total.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( icms: ICMSTotal.from_api(payload["icms"]), issqn: ISSQNTotal.from_api(payload["issqn"]), ) end |
.new ⇒ instance
11 |
# File 'sig/nfe/generated/nf_produto_v2/total.rbs', line 11
def self.new: (?icms: ICMSTotal, ?issqn: ISSQNTotal) -> instance
|