Sha256: b824b395c5cb77ac186e5acc3e7ec09d27b7d6e265f496d11077419d84fc48b8

Contents?: true

Size: 574 Bytes

Versions: 4

Compression:

Stored size: 574 Bytes

Contents

require 'active_support/configurable'

module GoogleSpreadsheetFetcher
  class Config
    include ActiveSupport::Configurable

    config_accessor :authorizer

    config_accessor :client_secrets_file
    config_accessor :credential_store_file # required if token_store not set
    config_accessor :token_store # required if credential_store_file not set
    config_accessor :scopes
    config_accessor :user_id

    def self.default_config
      new.tap do |config|
        config.scopes = [::Google::Apis::SheetsV4::AUTH_SPREADSHEETS_READONLY]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
google_spreadsheet_fetcher-2.2.0 lib/google_spreadsheet_fetcher/config.rb
google_spreadsheet_fetcher-2.1.0 lib/google_spreadsheet_fetcher/config.rb
google_spreadsheet_fetcher-2.0.1 lib/google_spreadsheet_fetcher/config.rb
google_spreadsheet_fetcher-2.0.0 lib/google_spreadsheet_fetcher/config.rb