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