class PPColumns

Public Class Methods

get(symbol_identifier) click to toggle source
# File lib/dtk_constants.rb, line 32
def self.get(symbol_identifier)
  return PPColumns.instance.get(symbol_identifier)
end
new() click to toggle source
# File lib/dtk_constants.rb, line 25
def initialize
  # content = DiskCacher.new.fetch("http://localhost/mockup/get_const_metadata", ::DTK::Configuration.get(:meta_constants_ttl))
  content = DiskCacher.new.fetch("const_metadata", ::DTK::Configuration.get(:meta_constants_ttl))
  raise DTK::Client::DtkError, "Require constants metadata is empty, please contact DTK team." if content.empty?
  @constants = JSON.parse(content)
end

Public Instance Methods

get(symbol_identifier) click to toggle source
# File lib/dtk_constants.rb, line 36
def get(symbol_identifier)
  return @constants[symbol_identifier.to_s]
end