Class: Sequent::Core::TenantCommand

Inherits:
Command show all
Defined in:
lib/sequent/core/command.rb

Direct Known Subclasses

UpdateTenantCommand

Instance Method Summary collapse

Methods included from Helpers::TypeConversionSupport

#parse_attrs_to_correct_types

Methods included from Helpers::Copyable

#copy

Methods included from Helpers::AttributeSupport

#attributes, included, #validation_errors

Methods included from Helpers::UuidHelper

new_uuid

Methods included from Helpers::EqualSupport

#==, #eql?, #hash

Methods included from Helpers::ParamSupport

#as_params, included, #to_params

Methods included from Helpers::Mergable

#merge!

Constructor Details

#initialize(args = {}) ⇒ TenantCommand

Returns a new instance of TenantCommand.

Raises:

  • (ArgumentError)


69
70
71
72
# File 'lib/sequent/core/command.rb', line 69

def initialize(args = {})
  raise ArgumentError, "Missing organization_id" if args[:organization_id].nil?
  super
end