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