Sha256: 837456b40b365bbb991289660658b4715189997e069de781d112bc1ca4c19bc8

Contents?: true

Size: 490 Bytes

Versions: 18

Compression:

Stored size: 490 Bytes

Contents

module Octobat
  class ExportsSetting < APIResource
    include Octobat::APIOperations::Create
    include Octobat::APIOperations::Update

    def self.default(params = {}, opts={})
      api_key, headers = Util.parse_opts(opts)
      api_key ||= @api_key
      opts[:api_key] = api_key

      instance = self.new(nil, opts)

      response, api_key = Octobat.request(:get, url + '/default', api_key, params)
      instance.refresh_from(response, api_key)
      instance
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
octobat-2.0.18 lib/octobat/exports_setting.rb
octobat-2.0.17 lib/octobat/exports_setting.rb
octobat-2.0.16 lib/octobat/exports_setting.rb
octobat-2.0.15 lib/octobat/exports_setting.rb
octobat-2.0.14 lib/octobat/exports_setting.rb
octobat-2.0.12 lib/octobat/exports_setting.rb
octobat-2.0.11 lib/octobat/exports_setting.rb
octobat-2.0.10 lib/octobat/exports_setting.rb
octobat-2.0.9 lib/octobat/exports_setting.rb
octobat-2.0.8 lib/octobat/exports_setting.rb
octobat-2.0.7 lib/octobat/exports_setting.rb
octobat-2.0.6 lib/octobat/exports_setting.rb
octobat-2.0.5 lib/octobat/exports_setting.rb
octobat-2.0.4 lib/octobat/exports_setting.rb
octobat-2.0.3 lib/octobat/exports_setting.rb
octobat-2.0.2 lib/octobat/exports_setting.rb
octobat-2.0.1 lib/octobat/exports_setting.rb
octobat-2.0.0 lib/octobat/exports_setting.rb