Class: GraphQL::Coverage::Store Private

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/coverage/store.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStore

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Store.



17
18
19
# File 'lib/graphql/coverage/store.rb', line 17

def initialize
  @calls = []
end

Instance Attribute Details

#callsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/graphql/coverage/store.rb', line 15

def calls
  @calls
end

Class Method Details

.currentObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



7
8
9
# File 'lib/graphql/coverage/store.rb', line 7

def self.current
  @current
end

.reset!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
# File 'lib/graphql/coverage/store.rb', line 11

def self.reset!
  @current = new
end

Instance Method Details

#append(call) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
# File 'lib/graphql/coverage/store.rb', line 21

def append(call)
  @calls << call
end