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