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