Class: NeetoCommonsBackend::SampleData::Common::OrganizationBase

Inherits:
Base
  • Object
show all
Defined in:
app/services/neeto_commons_backend/sample_data/common/organization_base.rb

Direct Known Subclasses

AppOrganizationService, OrganizationService

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#admin, #app_secrets, #description, #heroku_or_development_env?, #load!, #print_description, #print_success, #skip?

Constructor Details

#initializeOrganizationBase

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

#organizationObject (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_nameObject (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