Class: Penthouse::Tenants::BaseTenant
- Inherits:
-
Object
- Object
- Penthouse::Tenants::BaseTenant
- Defined in:
- lib/penthouse/tenants/base_tenant.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Instance Method Summary collapse
- #call(&block) {|BaseTenant| ... } ⇒ void abstract
- #create ⇒ void abstract
- #delete ⇒ void abstract
-
#initialize(identifier) ⇒ BaseTenant
constructor
A new instance of BaseTenant.
Constructor Details
#initialize(identifier) ⇒ BaseTenant
Returns a new instance of BaseTenant.
17 18 19 |
# File 'lib/penthouse/tenants/base_tenant.rb', line 17 def initialize(identifier) self.identifier = identifier end |
Instance Attribute Details
#identifier ⇒ Object
Returns the value of attribute identifier.
13 14 15 |
# File 'lib/penthouse/tenants/base_tenant.rb', line 13 def identifier @identifier end |
Instance Method Details
#call(&block) {|BaseTenant| ... } ⇒ void
This method is abstract.
placeholder for the relevant tenant-switching code
This method returns an undefined value.
25 26 27 |
# File 'lib/penthouse/tenants/base_tenant.rb', line 25 def call(&block) raise NotImplementedError end |
#create ⇒ void
This method is abstract.
creates the tenant data store
This method returns an undefined value.
31 32 33 |
# File 'lib/penthouse/tenants/base_tenant.rb', line 31 def create(*) raise NotImplementedError end |
#delete ⇒ void
This method is abstract.
deletes the tenant data store
This method returns an undefined value.
37 38 39 |
# File 'lib/penthouse/tenants/base_tenant.rb', line 37 def delete(*) raise NotImplementedError end |