Sha256: 005565074ce335facd1bea07c14a223e2a82935ab847d0a534559a61b0180e6e

Contents?: true

Size: 503 Bytes

Versions: 9

Compression:

Stored size: 503 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, opts)
      instance.refresh_from(response, api_key)
      instance
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
octobat-2.0.27 lib/octobat/document_email_template.rb
octobat-2.0.26 lib/octobat/document_email_template.rb
octobat-2.0.25 lib/octobat/document_email_template.rb
octobat-2.0.24 lib/octobat/document_email_template.rb
octobat-2.0.23 lib/octobat/document_email_template.rb
octobat-2.0.22 lib/octobat/document_email_template.rb
octobat-2.0.21 lib/octobat/document_email_template.rb
octobat-2.0.20 lib/octobat/document_email_template.rb
octobat-2.0.19 lib/octobat/document_email_template.rb