Class: Nfe::Generated::ServiceInvoiceRtcV1::ApproximateTax
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ServiceInvoiceRtcV1::ApproximateTax
- Defined in:
- lib/nfe/generated/service_invoice_rtc_v1/approximate_tax.rb,
sig/nfe/generated/service_invoice_rtc_v1/approximate_tax.rbs
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#total_amount ⇒ Object
readonly
Returns the value of attribute total_amount.
-
#total_rate ⇒ Object
readonly
Returns the value of attribute total_rate.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ApproximateTax
constructor
A new instance of ApproximateTax.
Constructor Details
#initialize ⇒ ApproximateTax
Returns a new instance of ApproximateTax.
14 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/approximate_tax.rbs', line 14
def initialize: (?source: String, ?total_amount: Float, ?total_rate: Float, ?version: String) -> void
|
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/approximate_tax.rb', line 9 def source @source end |
#total_amount ⇒ Object (readonly)
Returns the value of attribute total_amount
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/approximate_tax.rb', line 9 def total_amount @total_amount end |
#total_rate ⇒ Object (readonly)
Returns the value of attribute total_rate
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/approximate_tax.rb', line 9 def total_rate @total_rate end |
#version ⇒ Object (readonly)
Returns the value of attribute version
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/approximate_tax.rb', line 9 def version @version end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/approximate_tax.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( source: payload["source"], total_amount: payload["totalAmount"], total_rate: payload["totalRate"], version: payload["version"], ) end |
.new ⇒ instance
13 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/approximate_tax.rbs', line 13
def self.new: (?source: String, ?total_amount: Float, ?total_rate: Float, ?version: String) -> instance
|