Sha256: c97ff96b9203899c563fd0a46eba874af44f3492bddee40c97bc8a59797f9a8d

Contents?: true

Size: 620 Bytes

Versions: 7

Compression:

Stored size: 620 Bytes

Contents

module Gameball
    class Configurations
      # include Gameball::Utils
      def self.get_configurations(params={})
        Gameball::Utils.validate(params, [], ["lang"])
        res = Gameball::Utils::request("get", "/integrations/config",params:params)
        unless res.kind_of? Net::HTTPSuccess
          if res.kind_of? Net::HTTPInternalServerError
            raise Gameball::GameballError.new("An Internal Server Error has occurred")
          else
            raise Gameball::GameballError.new(res.body) 
          end
        else
          return res
        end
      end
    end
  end
  

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gameball-3.1.5 lib/gameball/models/configurations.rb
gameball-3.1.4 lib/gameball/models/configurations.rb
gameball-2.1.4 lib/gameball/models/configurations.rb
gameball-2.1.3 lib/gameball/models/configurations.rb
gameball-2.1.1 lib/gameball/models/configurations.rb
gameball-2.0.1 lib/gameball/models/configurations.rb
gameball-2.0.0 lib/gameball/models/configurations.rb