Exception: Gorynich::TenantNotFound
- Defined in:
- lib/gorynich.rb
Instance Attribute Summary collapse
-
#tenant ⇒ Object
readonly
Returns the value of attribute tenant.
Instance Method Summary collapse
-
#initialize(tenant, message = nil) ⇒ TenantNotFound
constructor
A new instance of TenantNotFound.
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, = nil) @tenant = tenant super( || I18n.t('gorynich.tenant_not_found', tenant: @tenant, default: "Tenant #{@tenant} not found")) end |
Instance Attribute Details
#tenant ⇒ Object (readonly)
Returns the value of attribute tenant.
15 16 17 |
# File 'lib/gorynich.rb', line 15 def tenant @tenant end |