Module: Core::Io::Base::JsonFormattingBehaviour::Input

Defined in:
app/api/core/io/base/json_formatting_behaviour/input.rb

Defined Under Namespace

Modules: AssociationHandling Classes: ReadOnlyAttribute

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object


13
14
15
16
17
18
# File 'app/api/core/io/base/json_formatting_behaviour/input.rb', line 13

def self.extended(base)
  base.class_eval do
    class_attribute :model_for_input, instance_writer: false
    extend AssociationHandling
  end
end

Instance Method Details

#set_model_for_input(model) ⇒ Object


20
21
22
# File 'app/api/core/io/base/json_formatting_behaviour/input.rb', line 20

def set_model_for_input(model)
  self.model_for_input = model
end