class Redstruct::Factory::Object

Base class for all objects a factory can produce

Attributes

factory[R]

@return [Redstruct::Factory] factory which was used to create the object

Public Class Methods

new(factory:) click to toggle source

@param [Redstruct::Factory] factory the factory which produced the object

# File lib/redstruct/factory/object.rb, line 15
def initialize(factory:)
  @factory = factory
end

Public Instance Methods

connection() click to toggle source

Convenience accessor for the factory's connection @return [Redstruct::ConnectionProxy]

# File lib/redstruct/factory/object.rb, line 21
def connection
  return @factory.connection
end
inspectable_attributes() click to toggle source

@!visibility private

# File lib/redstruct/factory/object.rb, line 26
def inspectable_attributes
  { factory: @factory }
end