Sha256: 8b1e9e5b611269a8a45e0e9667746b600f93d71d463dfcae8bbd925d079b350d
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true module GroupMe class Configuration API_MAX_GROUPS_PER_PAGE = 500 attr_writer :access_token, :groups_per_page def access_token raise MissingConfigurationError unless @access_token @access_token end def groups_per_page @groups_per_page ||= API_MAX_GROUPS_PER_PAGE end end def self.configure yield(configuration) end def self.reset_configuration! @configuration = Configuration.new end def self.configuration=(configuration) @configuration = configuration end def self.configuration @configuration ||= Configuration.new end end
Version data entries
6 entries across 6 versions & 1 rubygems