Module: JSONAPI::Serializable::Resource::KeyFormat

Defined in:
lib/jsonapi/serializable/resource/key_format.rb

Overview

Extension for handling automatic key formatting of

attributes/relationships.

Defined Under Namespace

Modules: DSL

Class Method Summary collapse

Class Method Details

.prepended(klass) ⇒ Object


17
18
19
20
21
22
23
24
# File 'lib/jsonapi/serializable/resource/key_format.rb', line 17

def self.prepended(klass)
  klass.class_eval do
    extend DSL
    class << self
      attr_accessor :key_format
    end
  end
end