Class: Nfe::Generated::Nfeio::ZipRequest

Inherits:
Data
  • Object
show all
Defined in:
lib/nfe/generated/nfeio/zip_request.rb,
sig/nfe/generated/nfeio/zip_request.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeZipRequest

Returns a new instance of ZipRequest.

Parameters:

  • blob_name: (String, nil)
  • id: (String)
  • type: (Object)


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

Returns the value of attribute blob_name

Returns:

  • (Object)

    the current value of blob_name



9
10
11
# File 'lib/nfe/generated/nfeio/zip_request.rb', line 9

def blob_name
  @blob_name
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



9
10
11
# File 'lib/nfe/generated/nfeio/zip_request.rb', line 9

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

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

Parameters:

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

Returns:

  • (instance, nil)


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

.newinstance

Parameters:

  • blob_name: (String, nil)
  • id: (String)
  • type: (Object)

Returns:

  • (instance)


12
# File 'sig/nfe/generated/nfeio/zip_request.rbs', line 12

def self.new: (?blob_name: String?, ?id: String, ?type: untyped) -> instance