Sha256: a1f0c58194ea889bd25abb89bcfa9dec89186b9a56bb0805d068420479e1e4db
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
# frozen_string_literal: true module GroupMe class Configuration API_MAX_GROUPS_PER_PAGE = 500 attr_writer :access_token attr_writer :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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
groupme-api-0.9.1 | lib/groupme/configuration.rb |
groupme-api-0.9.0 | lib/groupme/configuration.rb |