Class: ROM::Changeset::Create

Inherits:
ROM::Changeset show all
Defined in:
lib/rom/repository/changeset/create.rb

Overview

Changeset specialization for create commands

Instance Attribute Summary

Attributes inherited from ROM::Changeset

#data, #pipe, #relation

Instance Method Summary collapse

Methods inherited from ROM::Changeset

default_pipe, #initialize, #map, #to_h, #with

Constructor Details

This class inherits a constructor from ROM::Changeset

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ROM::Changeset

Instance Method Details

#create?TrueClass

Return true



21
22
23
# File 'lib/rom/repository/changeset/create.rb', line 21

def create?
  true
end

#update?FalseClass

Return false



12
13
14
# File 'lib/rom/repository/changeset/create.rb', line 12

def update?
  false
end