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