Class: Nfe::Generated::ProductInvoiceRtcV1::InvoiceEventsResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::InvoiceEventsResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/invoice_events_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/invoice_events_resource.rbs
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#company_id ⇒ Object
readonly
Returns the value of attribute company_id.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#has_more ⇒ Object
readonly
Returns the value of attribute has_more.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ InvoiceEventsResource
constructor
A new instance of InvoiceEventsResource.
Constructor Details
#initialize ⇒ InvoiceEventsResource
Returns a new instance of InvoiceEventsResource.
15 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/invoice_events_resource.rbs', line 15
def initialize: (?account_id: String?, ?company_id: String?, ?events: Array[ActivityResource]?, ?has_more: bool?, ?id: String?) -> void
|
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/invoice_events_resource.rb', line 9 def account_id @account_id end |
#company_id ⇒ Object (readonly)
Returns the value of attribute company_id
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/invoice_events_resource.rb', line 9 def company_id @company_id end |
#events ⇒ Object (readonly)
Returns the value of attribute events
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/invoice_events_resource.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/product_invoice_rtc_v1/invoice_events_resource.rb', line 9 def has_more @has_more end |
#id ⇒ Object (readonly)
Returns the value of attribute id
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/invoice_events_resource.rb', line 9 def id @id end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/invoice_events_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( account_id: payload["accountId"], company_id: payload["companyId"], events: (payload["events"] || []).map { |e| ActivityResource.from_api(e) }, has_more: payload["hasMore"], id: payload["id"], ) end |
.new ⇒ instance
14 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/invoice_events_resource.rbs', line 14
def self.new: (?account_id: String?, ?company_id: String?, ?events: Array[ActivityResource]?, ?has_more: bool?, ?id: String?) -> instance
|