Class: Nfe::Generated::NfConsumidorV2::CompetenceAdjustmentResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfConsumidorV2::CompetenceAdjustmentResource
- Defined in:
- lib/nfe/generated/nf_consumidor_v2/competence_adjustment_resource.rb,
sig/nfe/generated/nf_consumidor_v2/competence_adjustment_resource.rbs
Instance Attribute Summary collapse
-
#assessment_period ⇒ Object
readonly
Returns the value of attribute assessment_period.
-
#cbs_amount ⇒ Object
readonly
Returns the value of attribute cbs_amount.
-
#ibs_amount ⇒ Object
readonly
Returns the value of attribute ibs_amount.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ CompetenceAdjustmentResource
constructor
A new instance of CompetenceAdjustmentResource.
Constructor Details
#initialize ⇒ CompetenceAdjustmentResource
Returns a new instance of CompetenceAdjustmentResource.
13 |
# File 'sig/nfe/generated/nf_consumidor_v2/competence_adjustment_resource.rbs', line 13
def initialize: (?assessment_period: String?, ?cbs_amount: Float?, ?ibs_amount: Float?) -> void
|
Instance Attribute Details
#assessment_period ⇒ Object (readonly)
Returns the value of attribute assessment_period
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/competence_adjustment_resource.rb', line 9 def assessment_period @assessment_period end |
#cbs_amount ⇒ Object (readonly)
Returns the value of attribute cbs_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/competence_adjustment_resource.rb', line 9 def cbs_amount @cbs_amount end |
#ibs_amount ⇒ Object (readonly)
Returns the value of attribute ibs_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/competence_adjustment_resource.rb', line 9 def ibs_amount @ibs_amount end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 |
# File 'lib/nfe/generated/nf_consumidor_v2/competence_adjustment_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( assessment_period: payload["assessmentPeriod"], cbs_amount: payload["cbsAmount"], ibs_amount: payload["ibsAmount"], ) end |
.new ⇒ instance
12 |
# File 'sig/nfe/generated/nf_consumidor_v2/competence_adjustment_resource.rbs', line 12
def self.new: (?assessment_period: String?, ?cbs_amount: Float?, ?ibs_amount: Float?) -> instance
|