Exception: Gorynich::TenantNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/gorynich.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tenant, message = nil) ⇒ TenantNotFound

Returns a new instance of TenantNotFound.



17
18
19
20
21
# File 'lib/gorynich.rb', line 17

def initialize(tenant, message = nil)
  @tenant = tenant

  super(message || I18n.t('gorynich.tenant_not_found', tenant: @tenant, default: "Tenant #{@tenant} not found"))
end

Instance Attribute Details

#tenantObject (readonly)

Returns the value of attribute tenant.



15
16
17
# File 'lib/gorynich.rb', line 15

def tenant
  @tenant
end