Skip to content

Commit 4be2692

Browse files
committed
This is internal API
1 parent 5988f34 commit 4be2692

File tree

1 file changed

+1
-128
lines changed

1 file changed

+1
-128
lines changed

ruby_event_store/lib/ruby_event_store/specification_result.rb

Lines changed: 1 addition & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -37,144 +37,17 @@ def initialize(
3737
super
3838
end
3939

40-
# Limited results. True if number of read elements are limited
41-
# {http://railseventstore.org/docs/read/ Find out more}.
42-
#
43-
# @return [Boolean]
44-
def limit?
45-
!to_h[:limit].nil?
46-
end
47-
48-
# Results limit or infinity if limit not defined
49-
# {http://railseventstore.org/docs/read/ Find out more}.
50-
#
51-
# @return [Integer|Infinity]
40+
def limit? = !to_h[:limit].nil?
5241
def limit = to_h[:limit] || Float::INFINITY
53-
54-
# Stream definition. Stream to be read or nil
55-
# {http://railseventstore.org/docs/read/ Find out more}.
56-
#
57-
# @return [Stream|nil]
58-
# def stream = super
59-
60-
# Starting position. Event id of starting event
61-
# {http://railseventstore.org/docs/read/ Find out more}.
62-
#
63-
# @return [String]
64-
# def start = super
65-
66-
# Stop position. Event id of stopping event
67-
# {http://railseventstore.org/docs/read/ Find out more}.
68-
#
69-
# @return [String|Symbol]
70-
# def stop = super
71-
72-
# Ending time.
73-
# {http://railseventstore.org/docs/read/ Find out more}.
74-
#
75-
# @return [Time]
76-
# def older_than = super
77-
78-
# Ending time.
79-
# {http://railseventstore.org/docs/read/ Find out more}.
80-
#
81-
# @return [Time]
82-
# def older_than_or_equal = super
83-
84-
# Starting time.
85-
# {http://railseventstore.org/docs/read/ Find out more}.
86-
#
87-
# @return [Time]
88-
# def newer_than = super
89-
90-
# Starting time.
91-
# {http://railseventstore.org/docs/read/ Find out more}.
92-
#
93-
# @return [Time]
94-
# def newer_than_or_equal = super
95-
96-
# Time sorting strategy. Nil when not specified.
97-
# {http://railseventstore.org/docs/read/ Find out more}.
98-
#
99-
# @return [Symbol]
100-
# def time_sort_by = super
101-
102-
# Read direction. True is reading forward
103-
# {http://railseventstore.org/docs/read/ Find out more}.
104-
#
105-
# @return [Boolean]
10642
def forward? = direction.equal?(:forward)
107-
108-
# Read direction. True is reading backward
109-
# {http://railseventstore.org/docs/read/ Find out more}.
110-
#
111-
# @return [Boolean]
11243
def backward? = direction.equal?(:backward)
113-
114-
# Size of batch to read (only for :batch read strategy)
115-
# {http://railseventstore.org/docs/read/ Find out more}.
116-
#
117-
# @return [Integer]
118-
# def batch_size = super
119-
120-
# Ids of specified event to be read (if any given)
121-
# {http://railseventstore.org/docs/read/ Find out more}.
122-
#
123-
# @return [Array|nil]
124-
# def with_ids = super
125-
126-
# Read by specified ids. True if event ids have been specified.
127-
# {http://railseventstore.org/docs/read/ Find out more}.
128-
#
129-
# @return [Boolean]
13044
def with_ids? = !with_ids.nil?
131-
132-
# Event types to be read (if any given)
133-
# {http://railseventstore.org/docs/read/ Find out more}.
134-
#
135-
# @return [Array|nil]
136-
# def with_types = self.with_types&.map(&:to_s)
137-
138-
# Read by specified event types. True if event types have been specified.
139-
# {http://railseventstore.org/docs/read/ Find out more}.
140-
#
141-
# @return [Boolean]
14245
def with_types? = !(with_types || []).empty?
143-
144-
# Read strategy. True if items will be read in batches
145-
# {http://railseventstore.org/docs/read/ Find out more}.
146-
#
147-
# @return [Boolean]
14846
def batched? = read_as.equal?(:batch)
149-
150-
# Read strategy. True if first item will be read
151-
# {http://railseventstore.org/docs/read/ Find out more}.
152-
#
153-
# @return [Boolean]
15447
def first? = read_as.equal?(:first)
155-
156-
# Read strategy. True if last item will be read
157-
# {http://railseventstore.org/docs/read/ Find out more}.
158-
#
159-
# @return [Boolean]
16048
def last? = read_as.equal?(:last)
161-
162-
# Read strategy. True if all items will be read
163-
# {http://railseventstore.org/docs/read/ Find out more}.
164-
#
165-
# @return [Boolean]
16649
def all? = read_as.equal?(:all)
167-
168-
# Read strategy. True if results will be sorted by timestamp
169-
# {http://railseventstore.org/docs/read/ Find out more}.
170-
#
171-
# @return [Boolean]
17250
def time_sort_by_as_at? = time_sort_by.equal?(:as_at)
173-
174-
# Read strategy. True if results will be sorted by valid_at
175-
# {http://railseventstore.org/docs/read/ Find out more}.
176-
#
177-
# @return [Boolean]
17851
def time_sort_by_as_of? = time_sort_by.equal?(:as_of)
17952
end
18053
end

0 commit comments

Comments
 (0)