Sha256: eeb43181653054e73282dc98ca86f336935c1ed32c4f2122b822d3111a7683f1

Contents?: true

Size: 338 Bytes

Versions: 8

Compression:

Stored size: 338 Bytes

Contents

module Zhima
  class Config
    class << self
      attr_accessor :app_id, :private_key, :public_key

      def configure
        yield self
      end

      def mech_rsa
        @mech_rsa ||= OpenSSL::PKey::RSA.new private_key
      end

      def zm_rsa
        @zm_rsa ||= OpenSSL::PKey::RSA.new public_key
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
zhima-0.3.5 lib/zhima/config.rb
zhima-0.3.4 lib/zhima/config.rb
zhima-0.3.3 lib/zhima/config.rb
zhima-0.3.0 lib/zhima/config.rb
zhima-0.2.6 lib/zhima/config.rb
zhima-0.2.4 lib/zhima/config.rb
zhima-0.2.3 lib/zhima/config.rb
zhima-0.2.2 lib/zhima/config.rb