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