Class: Ecoportal::API::GraphQL::Payload::LocationStructure::Draft::Create
- Inherits:
-
Logic::Payload
- Object
- Logic::BaseModel
- Logic::Payload
- Ecoportal::API::GraphQL::Payload::LocationStructure::Draft::Create
- Defined in:
- lib/ecoportal/api/graphql/payload/location_structure/draft/create.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Logic::Payload
Instance Method Details
#error? ⇒ Boolean
13 14 15 16 |
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/create.rb', line 13 def error? super || draft.error? end |
#error_doc ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/ecoportal/api/graphql/payload/location_structure/draft/create.rb', line 18 def error_doc err_doc = super return err_doc if err_doc return unless draft.error? && draft.respond_to?(:error_doc) { draft: draft.error_doc } end |