module Beeline::Config
Public Instance Methods
friendships()
click to toggle source
# File lib/beeline/config.rb, line 5 def friendships beechat[:friendships] || {} end
hive_account()
click to toggle source
# File lib/beeline/config.rb, line 9 def hive_account chain[:hive_account] end
hive_posting_wif()
click to toggle source
# File lib/beeline/config.rb, line 13 def hive_posting_wif chain[:hive_posting_wif] end
hive_public_key()
click to toggle source
# File lib/beeline/config.rb, line 17 def hive_public_key chain[:hive_public_key] end
Private Instance Methods
beechat()
click to toggle source
# File lib/beeline/config.rb, line 21 def beechat @beechat_hash ||= yml[:beechat] || {} end
chain()
click to toggle source
# File lib/beeline/config.rb, line 25 def chain @chain_hash ||= yml[:chain] || {} end
yml()
click to toggle source
# File lib/beeline/config.rb, line 29 def yml return @yml if !!@yml config_yaml_path = "#{Beeline::PWD}/config.yml" @yml = if File.exist?(config_yaml_path) YAML.load_file(config_yaml_path) else raise "Create a file: #{config_yaml_path}" end @yml end