Class: Nfe::Generated::NfProdutoV2::ReferencedProcessResource

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeReferencedProcessResource

Returns a new instance of ReferencedProcessResource.

Parameters:

  • concession_act_type: (Integer, nil)
  • identifier_concessory: (String, nil)
  • identifier_origin: (Integer, nil)


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_typeObject (readonly)

Returns the value of attribute concession_act_type

Returns:

  • (Object)

    the current value of 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_concessoryObject (readonly)

Returns the value of attribute identifier_concessory

Returns:

  • (Object)

    the current value of 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_originObject (readonly)

Returns the value of attribute identifier_origin

Returns:

  • (Object)

    the current value of 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?

Parameters:

  • payload (Hash[String, untyped], nil)

Returns:

  • (instance, nil)


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

.newinstance

Parameters:

  • concession_act_type: (Integer, nil)
  • identifier_concessory: (String, nil)
  • identifier_origin: (Integer, nil)

Returns:

  • (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