Class: ChartMogul::Note Deprecated

Inherits:
APIResource show all
Includes:
API::Actions::Create, API::Actions::Destroy, API::Actions::Retrieve, API::Actions::Update
Defined in:
lib/chartmogul/note.rb

Overview

Deprecated.

Use EntityNote instead. /v1/customer_notes is superseded by /v1/notes.

Constant Summary

Constants inherited from APIResource

APIResource::BACKOFF_FACTOR, APIResource::INTERVAL, APIResource::INTERVAL_RANDOMNESS, APIResource::MAX_INTERVAL, APIResource::RETRY_EXCEPTIONS, APIResource::RETRY_STATUSES, APIResource::THREAD_CONNECTION_KEY

Class Method Summary collapse

Instance Method Summary collapse

Methods included from API::Actions::Update

included

Methods included from API::Actions::Retrieve

included

Methods included from API::Actions::Destroy

included

Methods included from API::Actions::Create

included

Methods inherited from APIResource

build_connection, build_query_path, connection, custom_with_query_params!, #custom_with_query_params!, extract_query_params, #extract_query_params, handle_other_error, handle_request_error, handling_errors, immutable_keys, json_patch, json_post, json_put, #path_with_query_params, query_params, set_immutable_keys, set_resource_name, set_resource_path, set_resource_root_key, writeable_query_param

Class Method Details

.all(options = {}) ⇒ Object

Deprecated.

Use EntityNote.all instead.



28
29
30
# File 'lib/chartmogul/note.rb', line 28

def self.all(options = {})
  Notes.all(options)
end

.create!(attributes = {}) ⇒ Object

Deprecated.

Use EntityNote.create! instead.



33
34
35
36
# File 'lib/chartmogul/note.rb', line 33

def self.create!(attributes = {})
  warn 'DEPRECATION WARNING: the method ChartMogul::Note.create! is deprecated. Use ChartMogul::EntityNote.create! instead.'
  super
end

.destroy!(options = {}) ⇒ Object

Deprecated.

Use EntityNote.destroy! instead.



51
52
53
54
# File 'lib/chartmogul/note.rb', line 51

def self.destroy!(options = {})
  warn 'DEPRECATION WARNING: the method ChartMogul::Note.destroy! is deprecated. Use ChartMogul::EntityNote.destroy! instead.'
  super
end

.retrieve(uuid, options = {}) ⇒ Object

Deprecated.

Use EntityNote.retrieve instead.



39
40
41
42
# File 'lib/chartmogul/note.rb', line 39

def self.retrieve(uuid, options = {})
  warn 'DEPRECATION WARNING: the method ChartMogul::Note.retrieve is deprecated. Use ChartMogul::EntityNote.retrieve instead.'
  super
end

.update!(uuid, attributes = {}) ⇒ Object

Deprecated.

Use EntityNote.update! instead.



45
46
47
48
# File 'lib/chartmogul/note.rb', line 45

def self.update!(uuid, attributes = {})
  warn 'DEPRECATION WARNING: the method ChartMogul::Note.update! is deprecated. Use ChartMogul::EntityNote.update! instead.'
  super
end

Instance Method Details

#create! ⇒ Object

Deprecated.

Use EntityNote#create! instead.



57
58
59
60
# File 'lib/chartmogul/note.rb', line 57

def create!
  warn 'DEPRECATION WARNING: the method ChartMogul::Note#create! is deprecated. Use ChartMogul::EntityNote#create! instead.'
  super
end

#destroy! ⇒ Object

Deprecated.

Use EntityNote#destroy! instead.



69
70
71
72
# File 'lib/chartmogul/note.rb', line 69

def destroy!
  warn 'DEPRECATION WARNING: the method ChartMogul::Note#destroy! is deprecated. Use ChartMogul::EntityNote#destroy! instead.'
  super
end

#update! ⇒ Object

Deprecated.

Use EntityNote#update! instead.



63
64
65
66
# File 'lib/chartmogul/note.rb', line 63

def update!
  warn 'DEPRECATION WARNING: the method ChartMogul::Note#update! is deprecated. Use ChartMogul::EntityNote#update! instead.'
  super
end