Class: Nfe::Generated::NfConsumidorV2::IBSCBSTotalsResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfConsumidorV2::IBSCBSTotalsResource
- Defined in:
- lib/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rb,
sig/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rbs
Instance Attribute Summary collapse
-
#basis ⇒ Object
readonly
Returns the value of attribute basis.
-
#cbs ⇒ Object
readonly
Returns the value of attribute cbs.
-
#credit_reversal ⇒ Object
readonly
Returns the value of attribute credit_reversal.
-
#ibs ⇒ Object
readonly
Returns the value of attribute ibs.
-
#monophase ⇒ Object
readonly
Returns the value of attribute monophase.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ IBSCBSTotalsResource
constructor
A new instance of IBSCBSTotalsResource.
Constructor Details
#initialize ⇒ IBSCBSTotalsResource
Returns a new instance of IBSCBSTotalsResource.
15 |
# File 'sig/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rbs', line 15
def initialize: (?basis: Float?, ?cbs: CBSTotalsResource, ?credit_reversal: CreditReversalTotalsResource, ?ibs: IBSTotalsResource, ?monophase: MonophaseTotalsResource) -> void
|
Instance Attribute Details
#basis ⇒ Object (readonly)
Returns the value of attribute basis
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rb', line 9 def basis @basis end |
#cbs ⇒ Object (readonly)
Returns the value of attribute cbs
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rb', line 9 def cbs @cbs end |
#credit_reversal ⇒ Object (readonly)
Returns the value of attribute credit_reversal
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rb', line 9 def credit_reversal @credit_reversal end |
#ibs ⇒ Object (readonly)
Returns the value of attribute ibs
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rb', line 9 def ibs @ibs end |
#monophase ⇒ Object (readonly)
Returns the value of attribute monophase
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rb', line 9 def monophase @monophase end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( basis: payload["basis"], cbs: CBSTotalsResource.from_api(payload["cbs"]), credit_reversal: CreditReversalTotalsResource.from_api(payload["creditReversal"]), ibs: IBSTotalsResource.from_api(payload["ibs"]), monophase: MonophaseTotalsResource.from_api(payload["monophase"]), ) end |
.new ⇒ instance
14 |
# File 'sig/nfe/generated/nf_consumidor_v2/ibscbstotals_resource.rbs', line 14
def self.new: (?basis: Float?, ?cbs: CBSTotalsResource, ?credit_reversal: CreditReversalTotalsResource, ?ibs: IBSTotalsResource, ?monophase: MonophaseTotalsResource) -> instance
|