class Bronze::Transforms::IdentityTransform

Transform class that maps an object to itself.

Public Class Methods

instance() click to toggle source

@return [IdentityTransform] a memoized instance of IdentityTransform.

# File lib/bronze/transforms/identity_transform.rb, line 9
def self.instance
  @instance ||= new
end

Public Instance Methods

denormalize(object) click to toggle source

Returns the object that was passed in to the method.

@param object [Object] The object to denormalize.

@return [Object] the object passed in.

# File lib/bronze/transforms/identity_transform.rb, line 18
def denormalize(object)
  object
end
normalize(object) click to toggle source

Returns the object that was passed in to the method.

@param object [Object] The object to normalize.

@return [Object] the object passed in.

# File lib/bronze/transforms/identity_transform.rb, line 27
def normalize(object)
  object
end