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