Class: RemoteTracker

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
EacRubyUtils::Listable, Remote
Defined in:
app/models/remote_tracker.rb,
app/models/remote_tracker/remote.rb,
app/models/remote_tracker/find_issue_local_status.rb

Defined Under Namespace

Modules: Remote Classes: FindIssueLocalStatus

Instance Method Summary collapse

Instance Method Details

#fetchable?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'app/models/remote_tracker.rb', line 31

def fetchable?
  self.class.fetchable_profiles.include?(profile)
end

#find_local_issue_status(local_tracker, remote_status_name, register_not_found = false) ⇒ Object

rubocop:disable Style/OptionalBooleanParameter



35
36
37
38
# File 'app/models/remote_tracker.rb', line 35

def find_local_issue_status(local_tracker, remote_status_name, register_not_found = false) # rubocop:disable Style/OptionalBooleanParameter
  ::RemoteTracker::FindIssueLocalStatus.new(self, local_tracker, remote_status_name,
                                            register_not_found).result
end

#setting_value(name) ⇒ Object



44
45
46
# File 'app/models/remote_tracker.rb', line 44

def setting_value(name)
  ::RemoteTrackerSetting.find_by(remote_tracker: self, name: name).if_present(&:value)
end

#to_sObject



40
41
42
# File 'app/models/remote_tracker.rb', line 40

def to_s
  "#{root_url} [#{profile_label}, #{username}]"
end