Class: Nfe::Generated::Nfeio::ProcessingBatchSummaryResponsePage
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::Nfeio::ProcessingBatchSummaryResponsePage
- Defined in:
- lib/nfe/generated/nfeio/processing_batch_summary_response_page.rb,
sig/nfe/generated/nfeio/processing_batch_summary_response_page.rbs
Instance Attribute Summary collapse
-
#has_next ⇒ Object
readonly
Returns the value of attribute has_next.
-
#has_previous ⇒ Object
readonly
Returns the value of attribute has_previous.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#next_cursor ⇒ Object
readonly
Returns the value of attribute next_cursor.
-
#previous_cursor ⇒ Object
readonly
Returns the value of attribute previous_cursor.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ProcessingBatchSummaryResponsePage
constructor
A new instance of ProcessingBatchSummaryResponsePage.
Constructor Details
#initialize ⇒ ProcessingBatchSummaryResponsePage
Returns a new instance of ProcessingBatchSummaryResponsePage.
15 |
# File 'sig/nfe/generated/nfeio/processing_batch_summary_response_page.rbs', line 15
def initialize: (?has_next: bool, ?has_previous: bool, ?items: Array[ProcessingBatchSummaryResponse]?, ?next_cursor: GuidPaginationCursor, ?previous_cursor: GuidPaginationCursor) -> void
|
Instance Attribute Details
#has_next ⇒ Object (readonly)
Returns the value of attribute has_next
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response_page.rb', line 9 def has_next @has_next end |
#has_previous ⇒ Object (readonly)
Returns the value of attribute has_previous
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response_page.rb', line 9 def has_previous @has_previous end |
#items ⇒ Object (readonly)
Returns the value of attribute items
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response_page.rb', line 9 def items @items end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response_page.rb', line 9 def next_cursor @next_cursor end |
#previous_cursor ⇒ Object (readonly)
Returns the value of attribute previous_cursor
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response_page.rb', line 9 def previous_cursor @previous_cursor end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response_page.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( has_next: payload["hasNext"], has_previous: payload["hasPrevious"], items: (payload["items"] || []).map { |e| ProcessingBatchSummaryResponse.from_api(e) }, next_cursor: GuidPaginationCursor.from_api(payload["nextCursor"]), previous_cursor: GuidPaginationCursor.from_api(payload["previousCursor"]), ) end |
.new ⇒ instance
14 |
# File 'sig/nfe/generated/nfeio/processing_batch_summary_response_page.rbs', line 14
def self.new: (?has_next: bool, ?has_previous: bool, ?items: Array[ProcessingBatchSummaryResponse]?, ?next_cursor: GuidPaginationCursor, ?previous_cursor: GuidPaginationCursor) -> instance
|