Class: Ecoportal::API::GraphQL::Logic::Connection
- Inherits:
-
Logic::BaseModel
- Object
- Logic::BaseModel
- Ecoportal::API::GraphQL::Logic::Connection
- Includes:
- Enumerable
- Defined in:
- lib/ecoportal/api/graphql/logic/connection.rb
Direct Known Subclasses
Connection::Action, Connection::ActionCategory, Connection::ContractorEntity, Connection::Page, Connection::PagesWorkflowCommand, Connection::PersonMemberConnection, Connection::PresetView, Connection::PreviewPage
Defined Under Namespace
Classes: GenericNode
Instance Method Summary collapse
Instance Method Details
#each(&block) ⇒ Object
25 26 27 28 29 |
# File 'lib/ecoportal/api/graphql/logic/connection.rb', line 25 def each(&block) return to_enum(:each) unless block nodes.each(&block) end |
#empty? ⇒ Boolean
21 22 23 |
# File 'lib/ecoportal/api/graphql/logic/connection.rb', line 21 def empty? count < 1 end |