Sha256: a2a36a61dd121ac9cac3069d8ab278ca0e348be7533ef8d008af621e1d3b3e53

Contents?: true

Size: 497 Bytes

Versions: 18

Compression:

Stored size: 497 Bytes

Contents

module Octobat
  class DocumentEmailTemplate < 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/document_email_template.rb
octobat-2.0.17 lib/octobat/document_email_template.rb
octobat-2.0.16 lib/octobat/document_email_template.rb
octobat-2.0.15 lib/octobat/document_email_template.rb
octobat-2.0.14 lib/octobat/document_email_template.rb
octobat-2.0.12 lib/octobat/document_email_template.rb
octobat-2.0.11 lib/octobat/document_email_template.rb
octobat-2.0.10 lib/octobat/document_email_template.rb
octobat-2.0.9 lib/octobat/document_email_template.rb
octobat-2.0.8 lib/octobat/document_email_template.rb
octobat-2.0.7 lib/octobat/document_email_template.rb
octobat-2.0.6 lib/octobat/document_email_template.rb
octobat-2.0.5 lib/octobat/document_email_template.rb
octobat-2.0.4 lib/octobat/document_email_template.rb
octobat-2.0.3 lib/octobat/document_email_template.rb
octobat-2.0.2 lib/octobat/document_email_template.rb
octobat-2.0.1 lib/octobat/document_email_template.rb
octobat-2.0.0 lib/octobat/document_email_template.rb