Methods
- C
- L
- N
- V
Attributes
| [R] | community_name | |
| [R] | integration |
Class Public methods
new(integration) Link
Source: show
# File app/lib/integration_provider/muut.rb, line 5 def initialize(integration) @integration = integration end
Instance Public methods
languages() Link
Source: show
# File app/lib/integration_provider/muut.rb, line 57 def languages [ %w[Arabic ar], %w[Basque eu], ["Brazil Portuguese", "pt-br"], %w[Bulgarian bg], %w[Chinese zh], ["Chinese / Taiwan", "tw"], %w[Danish da], %w[Dutch nl], %w[English en], %w[Finnish fi], ["Farsi / Persian", "fa"], %w[French fr], %w[German de], %w[Hebrew he], %w[Hungarian hu], %w[Indonesian id], %w[Italian it], %w[Japanese ja], %w[Korean ko], %w[Norwegian no], %w[Polish pl], ["Portugese (pt"], %w[Slovak sk], %w[Spanish es], %w[Swedish se], %w[Romanian ro], %w[Russian ru], %w[Tamil ta], %w[Thai th], %w[Turkish tr], %w[Ukrainian uk] ] end
valid?() Link
Also aliased as: connected?
Source: show
# File app/lib/integration_provider/muut.rb, line 9 def valid? # FIXME: due to code design, this cannot happen during initialize # the integration is built with the desired params after the provider manager # checks validity of the provider name, which happens dynamically in the # integration model anyway @community_name = integration.authentication["community_name"] # FIXME: Use AM Validations - it's a bigger chore because this class # and the provider manager are used as go-betweens to the integration validate_authentication_fields(:api_key, :api_secret) validate_community_format # FIXME: calling #valid? here causes an infinite loop back to this method integration.errors.empty? end