Module: RemoteTracker::Remote::ClassMethods
- Defined in:
- app/models/remote_tracker/remote.rb
Instance Method Summary collapse
- #fetchable_profiles ⇒ Object
- #profile_fetchable?(profile) ⇒ Boolean
- #provider_instance_class(profile) ⇒ Object
Instance Method Details
#fetchable_profiles ⇒ Object
10 11 12 13 14 |
# File 'app/models/remote_tracker/remote.rb', line 10 def fetchable_profiles @fetchable_profiles ||= lists.profile.values.select do |profile| profile_fetchable?(profile) end end |
#profile_fetchable?(profile) ⇒ Boolean
16 17 18 |
# File 'app/models/remote_tracker/remote.rb', line 16 def profile_fetchable?(profile) provider_instance_class(profile).method_defined?(:fetch_issues_changed) end |
#provider_instance_class(profile) ⇒ Object
20 21 22 23 24 |
# File 'app/models/remote_tracker/remote.rb', line 20 def provider_instance_class(profile) lists.profile.value_validate!(profile) ::RedmineRemotes.const_get(profile.capitalize).const_get('Instance') end |