Class: Nfe::Generated::NfConsumidorV2::InvoiceEventsResourceBase
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfConsumidorV2::InvoiceEventsResourceBase
- Defined in:
- lib/nfe/generated/nf_consumidor_v2/invoice_events_resource_base.rb,
sig/nfe/generated/nf_consumidor_v2/invoice_events_resource_base.rbs
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#has_more ⇒ Object
readonly
Returns the value of attribute has_more.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ InvoiceEventsResourceBase
constructor
A new instance of InvoiceEventsResourceBase.
Constructor Details
#initialize ⇒ InvoiceEventsResourceBase
Returns a new instance of InvoiceEventsResourceBase.
12 |
# File 'sig/nfe/generated/nf_consumidor_v2/invoice_events_resource_base.rbs', line 12
def initialize: (?events: Array[ActivityResource]?, ?has_more: bool?) -> void
|
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/invoice_events_resource_base.rb', line 9 def events @events end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/invoice_events_resource_base.rb', line 9 def has_more @has_more end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 |
# File 'lib/nfe/generated/nf_consumidor_v2/invoice_events_resource_base.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( events: (payload["events"] || []).map { |e| ActivityResource.from_api(e) }, has_more: payload["hasMore"], ) end |
.new ⇒ instance
11 |
# File 'sig/nfe/generated/nf_consumidor_v2/invoice_events_resource_base.rbs', line 11
def self.new: (?events: Array[ActivityResource]?, ?has_more: bool?) -> instance
|