Class: Decidim::Voca::Rpc::GetSettings
- Inherits:
-
Object
- Object
- Decidim::Voca::Rpc::GetSettings
- Includes:
- VocaDecidim
- Defined in:
- app/rpc/decidim/voca/rpc/get_settings.rb
Constant Summary
Constants included from VocaDecidim
VocaDecidim::DecidimOrganizationColorSettings, VocaDecidim::DecidimOrganizationFeatureFlagSettings, VocaDecidim::DecidimOrganizationFileUploadSettings, VocaDecidim::DecidimOrganizationLocaleSettings, VocaDecidim::DecidimOrganizationNamingSettings, VocaDecidim::DecidimOrganizationPermissionSettings, VocaDecidim::DecidimOrganizationSMTPSettings, VocaDecidim::GetSettingsResponse, VocaDecidim::PingResponse, VocaDecidim::SETTINGS_MACHINE_TRANSLATION_PRIORITY_OPTION, VocaDecidim::SETTINGS_REGISTER_MODE_OPTION, VocaDecidim::SETTINGS_SMTP_AUTHENTICATION_OPTION, VocaDecidim::SETTINGS_SMTP_OPENSSL_OPTION, VocaDecidim::SeedAdminRequest, VocaDecidim::SeedAdminResponse, VocaDecidim::SetSettingsRequest
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
Instance Method Summary collapse
-
#get_settings ⇒ Object
get all the settings linked to the organization.
-
#initialize(message, organization) ⇒ GetSettings
constructor
A new instance of GetSettings.
Constructor Details
#initialize(message, organization) ⇒ GetSettings
Returns a new instance of GetSettings.
9 10 11 12 |
# File 'app/rpc/decidim/voca/rpc/get_settings.rb', line 9 def initialize(, organization) @message = @organization = organization end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'app/rpc/decidim/voca/rpc/get_settings.rb', line 8 def @message end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
8 9 10 |
# File 'app/rpc/decidim/voca/rpc/get_settings.rb', line 8 def organization @organization end |
Instance Method Details
#get_settings ⇒ Object
get all the settings linked to the organization.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/rpc/decidim/voca/rpc/get_settings.rb', line 16 def get_settings GetSettingsResponse.new( id: organization.id, permission_settings: , naming_settings: naming_settings, locale_settings: locale_settings, smtp_settings: smtp_settings, color_settings: color_settings, file_upload_settings: file_upload_settings, feature_settings: feature_settings ) end |