Class: NeetoCommonsBackend::SampleData::Common::OrganizationBase
- Defined in:
- app/services/neeto_commons_backend/sample_data/common/organization_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#organization_name ⇒ Object
readonly
Returns the value of attribute organization_name.
Instance Method Summary collapse
-
#initialize ⇒ OrganizationBase
constructor
A new instance of OrganizationBase.
- #process! ⇒ Object
Methods inherited from Base
#admin, #app_secrets, #description, #heroku_or_development_env?, #load!, #print_description, #print_success, #skip?
Constructor Details
#initialize ⇒ OrganizationBase
Returns a new instance of OrganizationBase.
11 12 13 |
# File 'app/services/neeto_commons_backend/sample_data/common/organization_base.rb', line 11 def initialize @organization_name = self.class::ORGANIZATION_NAME end |
Instance Attribute Details
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
9 10 11 |
# File 'app/services/neeto_commons_backend/sample_data/common/organization_base.rb', line 9 def organization @organization end |
#organization_name ⇒ Object (readonly)
Returns the value of attribute organization_name.
9 10 11 |
# File 'app/services/neeto_commons_backend/sample_data/common/organization_base.rb', line 9 def organization_name @organization_name end |
Instance Method Details
#process! ⇒ Object
15 16 17 |
# File 'app/services/neeto_commons_backend/sample_data/common/organization_base.rb', line 15 def process! create_organization! end |