Sha256: e69666bb1c795cc3e43781a64ea56db542c037cbb448ffbba6a13930e696aadf
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
module SurveyGizmo class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield(configuration) if block_given? SurveyGizmo.setup end def self.reset! self.configuration = Configuration.new end class Configuration DEFAULT_RESULTS_PER_PAGE = 50 DEFAULT_API_VERSION = 'v4' attr_accessor :api_version attr_accessor :user attr_accessor :password attr_accessor :results_per_page def initialize @results_per_page = DEFAULT_RESULTS_PER_PAGE @api_version = DEFAULT_API_VERSION end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
survey-gizmo-ruby-4.1.0 | lib/survey_gizmo/configuration.rb |