Class: Orchestra::Recording::Playback

Inherits:
BasicObject
Defined in:
lib/orchestra/recording/playback.rb

Defined Under Namespace

Classes: Factory

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mocks) ⇒ Playback

Returns a new instance of Playback.



6
7
8
# File 'lib/orchestra/recording/playback.rb', line 6

def initialize mocks
  @mocks = mocks
end

Instance Attribute Details

#mocksObject (readonly)

Returns the value of attribute mocks.



4
5
6
# File 'lib/orchestra/recording/playback.rb', line 4

def mocks
  @mocks
end

Class Method Details

.build(service_recording) ⇒ Object



14
15
16
17
# File 'lib/orchestra/recording/playback.rb', line 14

def self.build service_recording
  factory = Factory.new
  factory.build service_recording
end

Instance Method Details

#respond_to?(meth) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/orchestra/recording/playback.rb', line 10

def respond_to? meth
  mocks.has_key? meth
end