Sha256: 0c0df752c881a73cf281b7344e59483dd18d6c46f8f0cac45fedd5328d8681bd

Contents?: true

Size: 810 Bytes

Versions: 20

Compression:

Stored size: 810 Bytes

Contents

# frozen_string_literal: true

module QiitaTrend
  class << self
    def configure
      yield(configuration)
    end

    def configuration
      @configuration ||= Configuration.new
    end
  end

  # QiitaTrendのConfigの設定する機能を提供する
  class Configuration
    # @return [String] Qiitaにログインするためのユーザー名
    attr_accessor :user_name
    # @return [String] Qiitaにログインするためのパスワード
    attr_accessor :password
    # @return [String] キャッシュファイルを保存するディレクトリ
    attr_accessor :cache_directory

    # コンストラクタ
    # Configurationクラスのインスタンスを返します
    def initialize
      @user_name = nil
      @password = nil
      @cache_directory = nil
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
qiita_trend-0.4.8 lib/qiita_trend/configuration.rb
qiita_trend-0.4.7 lib/qiita_trend/configuration.rb
qiita_trend-0.4.6 lib/qiita_trend/configuration.rb
qiita_trend-0.4.5 lib/qiita_trend/configuration.rb
qiita_trend-0.4.4 lib/qiita_trend/configuration.rb
qiita_trend-0.4.3 lib/qiita_trend/configuration.rb
qiita_trend-0.4.2 lib/qiita_trend/configuration.rb
qiita_trend-0.4.1 lib/qiita_trend/configuration.rb
qiita_trend-0.4.0 lib/qiita_trend/configuration.rb
qiita_trend-0.3.9 lib/qiita_trend/configuration.rb
qiita_trend-0.3.8 lib/qiita_trend/configuration.rb
qiita_trend-0.3.7 lib/qiita_trend/configuration.rb
qiita_trend-0.3.6 lib/qiita_trend/configuration.rb
qiita_trend-0.3.5 lib/qiita_trend/configuration.rb
qiita_trend-0.3.4 lib/qiita_trend/configuration.rb
qiita_trend-0.3.3 lib/qiita_trend/configuration.rb
qiita_trend-0.3.2 lib/qiita_trend/configuration.rb
qiita_trend-0.3.1 lib/qiita_trend/configuration.rb
qiita_trend-0.3.0 lib/qiita_trend/configuration.rb
qiita_trend-0.2.9 lib/qiita_trend/configuration.rb