class Octobat::EmailsSetting
Public Class Methods
default(params = {}, opts={})
click to toggle source
# File lib/octobat/emails_setting.rb, line 6 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