module Alphapoint
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/alphapoint.rb, line 50 def self.configure yield(configuration) end
configure_with(path_to_yaml_file)
click to toggle source
# File lib/alphapoint.rb, line 54 def self.configure_with(path_to_yaml_file) configure do |configuration| begin config = YAML.load(IO.read(path_to_yaml_file)) configuration.address = config.address configuration.user = config.user configuration.password = config.password rescue Errno::ENOENT # log(:warning, "YAML configuration file couldn't be found. Using defaults."); return rescue Psych::SyntaxError # log(:warning, "YAML configuration file contains invalid syntax. Using defaults."); return end end end
reset()
click to toggle source
# File lib/alphapoint.rb, line 46 def self.reset @configuration = Configuration.new end
response_of(type)
click to toggle source
# File lib/alphapoint.rb, line 30 def self.response_of(type) if type == REQUEST REPLY elsif type == SUBSCRIBE EVENT end end