Sha256: 118a4c1fa3db4cd3201b8666a69547e15779cad6fde0c81ca87725d33ac5ec2d

Contents?: true

Size: 510 Bytes

Versions: 4

Compression:

Stored size: 510 Bytes

Contents

require 'active_support/configurable'

module GoogleSpreadsheetFetcher
  class Config
    include ActiveSupport::Configurable

    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

    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-1.9.1 lib/google_spreadsheet_fetcher/config.rb
google_spreadsheet_fetcher-1.9.0 lib/google_spreadsheet_fetcher/config.rb
google_spreadsheet_fetcher-1.8.1 lib/google_spreadsheet_fetcher/config.rb
google_spreadsheet_fetcher-1.8.0 lib/google_spreadsheet_fetcher/config.rb