Class: Nfe::Generated::NfConsumidorV2::ExportHintResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfConsumidorV2::ExportHintResource
- Defined in:
- lib/nfe/generated/nf_consumidor_v2/export_hint_resource.rb,
sig/nfe/generated/nf_consumidor_v2/export_hint_resource.rbs
Instance Attribute Summary collapse
-
#access_key ⇒ Object
readonly
Returns the value of attribute access_key.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#registry_id ⇒ Object
readonly
Returns the value of attribute registry_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ExportHintResource
constructor
A new instance of ExportHintResource.
Constructor Details
#initialize ⇒ ExportHintResource
Returns a new instance of ExportHintResource.
13 |
# File 'sig/nfe/generated/nf_consumidor_v2/export_hint_resource.rbs', line 13
def initialize: (?access_key: String?, ?quantity: Float?, ?registry_id: String?) -> void
|
Instance Attribute Details
#access_key ⇒ Object (readonly)
Returns the value of attribute access_key
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/export_hint_resource.rb', line 9 def access_key @access_key end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/export_hint_resource.rb', line 9 def quantity @quantity end |
#registry_id ⇒ Object (readonly)
Returns the value of attribute registry_id
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/export_hint_resource.rb', line 9 def registry_id @registry_id end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 |
# File 'lib/nfe/generated/nf_consumidor_v2/export_hint_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( access_key: payload["accessKey"], quantity: payload["quantity"], registry_id: payload["registryId"], ) end |
.new ⇒ instance
12 |
# File 'sig/nfe/generated/nf_consumidor_v2/export_hint_resource.rbs', line 12
def self.new: (?access_key: String?, ?quantity: Float?, ?registry_id: String?) -> instance
|