Class: TrustlinkConfig

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/app/models/trustlink_config.rb

Class Method Summary collapse

Class Method Details

.bot_ipsObject



3
4
5
# File 'lib/app/models/trustlink_config.rb', line 3

def bot_ips
  where(name: 'ip').pluck(:value)
end

.start_codeObject



7
8
9
# File 'lib/app/models/trustlink_config.rb', line 7

def start_code
  where(name: 'start').first.value
end

.stop_codeObject



11
12
13
# File 'lib/app/models/trustlink_config.rb', line 11

def stop_code
  where(name: 'end').first.value
end