Class: Ecoportal::API::GraphQL::Payload::LocationStructure::ApplyCommands

Inherits:
Base::Model show all
Defined in:
lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb

Constant Summary

Constants included from Common::GraphQL::Model::Diffable

Common::GraphQL::Model::Diffable::DIFF_CLASS

Instance Method Summary collapse

Methods included from Common::GraphQL::Model::AsInput

#as_input

Methods included from Common::GraphQL::Model::Diffable

#as_update, #dirty?

Instance Method Details

#errors?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb', line 19

def errors?
  errors && !errors.empty?
end

#success?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb', line 15

def success?
  !errors?
end