class A4Tools::KaiConfigClient
Attributes
cache_timeout[RW]
Public Instance Methods
banks()
click to toggle source
# File lib/clients/kai_config_client.rb, line 35 def banks (section_bank_info[:banks].map { |bank| bank[:bankName] }) end
machines()
click to toggle source
# File lib/clients/kai_config_client.rb, line 27 def machines (section_bank_info[:locations].map { |loc| loc[:location] }) end
section_bank_info()
click to toggle source
# File lib/clients/kai_config_client.rb, line 23 def section_bank_info strip_wrapper(query(:configValueRequest, talk["SECTION_BANK_LOCATION_VALUES"])) end
sections()
click to toggle source
# File lib/clients/kai_config_client.rb, line 31 def sections (section_bank_info[:sections].map { |sect| sect[:sectionName] }) end
site_version()
click to toggle source
# File lib/clients/kai_config_client.rb, line 19 def site_version response_body(send_message(empty_query(:getConfigWebVersion)))[:stringValue] rescue nil end
strip_wrapper(result)
click to toggle source
# File lib/clients/kai_config_client.rb, line 13 def strip_wrapper(result) body = result[:configValueWrappers][0][:wrappedConfigValues][0][:body] body[:__class] = result[:configValueWrappers][0][:wrappedConfigValues][0][:className] body end