lib/postini.rb
# Configure the library from yaml configuration file or
# environment variables
Configure the library from yaml configuration file or
environment variables
Configure the library from yaml configuration file or environment variables
def configure!( yaml = nil )
      data = if yaml
               YAML.load_file( yaml )
             else
               {
                 'api_key' => ENV['POSTINI_API_KEY'],
                 'system_number' => ENV['POSTINI_SYSTEM_NUMBER'],
                 'username' => ENV['POSTINI_USERNAME'],
                 'password' => ENV['POSTINI_PASSWORD']
               }
             end
      data.each do |k,v|
        self.send( "#{k}=", v )
      end
      Handsoap.timeout = 300
    end
def configure! ( yaml = nil ) data = if yaml YAML . load_file ( yaml ) else { 'api_key' => ENV [ 'POSTINI_API_KEY' ] , 'system_number' => ENV [ 'POSTINI_SYSTEM_NUMBER' ] , 'username' => ENV [ 'POSTINI_USERNAME' ] , 'password' => ENV [ 'POSTINI_PASSWORD' ] } end data . each do | k , v | self . send ( "#{k}=" , v ) end Handsoap . timeout = 300 end
Configure the library from yaml configuration file or
environment variables
Configure the library from yaml configuration file or environment variables
# Cope with trans-continental links
yaml
<not_specific>