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