Sha256: ff23a9591ce4c1f4942aaa0f4dfed98eba6da984d4056e95de061169b0d154f3

Contents?: true

Size: 736 Bytes

Versions: 4

Compression:

Stored size: 736 Bytes

Contents

module GuanyiErp
  module Config

    def self.app_key=(val)
      @@app_key = val
    end

    def self.app_key
      @@app_key
    end

    def self.secret=(val)
      @@secret = val
    end

    def self.secret
      @@secret
    end

    def self.session_key=(val)
      @@session_key = val
    end

    def self.session_key
      @@session_key
    end

    def self.api_base_path=(val)
      @@api_base_path = val
    end

    def self.api_bash_path
      @@api_base_path
    end

    def self.api_host
      api_bash_path.scan(/(https.*.com)(\/.*)/) { |host, url|
        return host
      }
    end

    def self.api_path
      api_bash_path.scan(/(https.*.com)(\/.*)/) { |host, url|
        return url
      }
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guanyi-erp-1.0.3 lib/guanyi_erp/config.rb
guanyi-erp-1.0.2 lib/guanyi_erp/config.rb
guanyi-erp-1.0.1 lib/guanyi_erp/config.rb
guanyi-erp-1.0.0 lib/guanyi_erp/config.rb