Class: GraphQL::Coverage::Store Private
- Inherits:
-
Object
- Object
- GraphQL::Coverage::Store
- 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
- #calls ⇒ Object readonly private
Class Method Summary collapse
- .current ⇒ Object private
- .reset! ⇒ Object private
Instance Method Summary collapse
- #append(call) ⇒ Object private
-
#initialize ⇒ Store
constructor
private
A new instance of Store.
Constructor Details
#initialize ⇒ Store
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
#calls ⇒ Object (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
.current ⇒ 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.
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 |