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