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