Sha256: a4f3a0dc5c3564b46e4a7a90326e84de35403342008ef66b0b14a5e46c6bebf4

Contents?: true

Size: 862 Bytes

Versions: 4

Compression:

Stored size: 862 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'

module ChartMogul
  class Note < APIResource
    set_resource_name 'CustomerNote'
    set_resource_path '/v1/customer_notes'

    readonly_attr :uuid

    writeable_attr :customer_uuid
    writeable_attr :type
    writeable_attr :text
    writeable_attr :author
    writeable_attr :text
    writeable_attr :call_duration
    writeable_attr :created_at
    writeable_attr :updated_at

    include API::Actions::Create
    include API::Actions::Destroy
    include API::Actions::Retrieve
    include API::Actions::Update

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

  class Notes < APIResource
    set_resource_name 'CustomerNotes'
    set_resource_path '/v1/customer_notes'

    include Concerns::Entries
    include Concerns::PageableWithCursor

    set_entry_class Note
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chartmogul-ruby-4.4.0 lib/chartmogul/note.rb
chartmogul-ruby-4.3.0 lib/chartmogul/note.rb
chartmogul-ruby-4.2.0 lib/chartmogul/note.rb
chartmogul-ruby-4.1.0 lib/chartmogul/note.rb