Class: EventStoreSubscriptions::SubscriptionSetup

Inherits:
Struct
  • Object
show all
Defined in:
lib/event_store_subscriptions/subscription_setup.rb

Overview

Handles arguments that were used to create a subscription. We need to persist them for later adjustment and delegation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



6
7
8
# File 'lib/event_store_subscriptions/subscription_setup.rb', line 6

def args
  @args
end

#blkObject

Returns the value of attribute blk

Returns:

  • (Object)

    the current value of blk



6
7
8
# File 'lib/event_store_subscriptions/subscription_setup.rb', line 6

def blk
  @blk
end

#kwargsObject

Returns the value of attribute kwargs

Returns:

  • (Object)

    the current value of kwargs



6
7
8
# File 'lib/event_store_subscriptions/subscription_setup.rb', line 6

def kwargs
  @kwargs
end

Instance Method Details

#dupEventStoreSubscriptions::SubscriptionSetup



8
9
10
# File 'lib/event_store_subscriptions/subscription_setup.rb', line 8

def dup
  self.class.new(args.dup, deep_dup(kwargs), blk)
end