Class: Octobat::EmailsSetting
- Inherits:
-
APIResource
- Object
- OctobatObject
- APIResource
- Octobat::EmailsSetting
- Includes:
- APIOperations::Create, APIOperations::Update
- Defined in:
- lib/octobat/emails_setting.rb
Instance Attribute Summary
Attributes inherited from OctobatObject
Class Method Summary collapse
Methods included from APIOperations::Update
#save, #serialize_metadata, #serialize_params
Methods included from APIOperations::Create
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods inherited from OctobatObject
#[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Octobat::OctobatObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Octobat::OctobatObject
Class Method Details
.default(params = {}, opts = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# 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 |