File tree Expand file tree Collapse file tree 9 files changed +0
-20
lines changed
Expand file tree Collapse file tree 9 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,10 @@ class SportsFilter < Contract
1111 propertize ( %i[ sport date ] )
1212
1313 validation do
14- # :nocov:
1514 params do
1615 required ( :sport ) . filled ( :string , included_in? : SPORTS )
1716 required ( :date ) . filled ( :string , format? : /\A \d {4}-\d {2}-\d {2}\z / )
1817 end
19- # :nocov:
2018 end
2119 end
2220
@@ -25,7 +23,6 @@ class Filter < Contract
2523 propertize ( %i[ polymarket_market_slug kalshi_event_ticker ] )
2624
2725 validation do
28- # :nocov:
2926 params do
3027 optional ( :polymarket_market_slug ) . maybe ( Types ::PolymarketMarketSlug )
3128 optional ( :kalshi_event_ticker ) . maybe ( Types ::KalshiEventTicker )
@@ -36,7 +33,6 @@ class Filter < Contract
3633 key . failure ( 'Either polymarket_market_slug or kalshi_event_ticker must be provided' )
3734 end
3835 end
39- # :nocov:
4036 end
4137 end
4238
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ class Filter < Contract
1414 propertize ( %i[ user start_time end_time market_slug condition_id limit offset ] )
1515
1616 validation do
17- # :nocov:
1817 params do
1918 required ( :user ) . filled ( :string )
2019 optional ( :start_time ) . maybe ( :integer )
@@ -24,7 +23,6 @@ class Filter < Contract
2423 optional ( :limit ) . maybe ( :integer , gteq? : 1 , lteq? : 1000 )
2524 optional ( :offset ) . maybe ( :integer , gteq? : 0 )
2625 end
27- # :nocov:
2826 end
2927 end
3028 end
Original file line number Diff line number Diff line change @@ -15,14 +15,12 @@ class Filter < Contract
1515 propertize ( %i[ condition_id start_time end_time interval ] )
1616
1717 validation do
18- # :nocov:
1918 params do
2019 required ( :condition_id ) . filled ( :string )
2120 required ( :start_time ) . filled ( :integer )
2221 required ( :end_time ) . filled ( :integer )
2322 optional ( :interval ) . maybe ( :integer , gteq? : 1 , lteq? : 1440 )
2423 end
25- # :nocov:
2624 end
2725 end
2826 end
Original file line number Diff line number Diff line change @@ -14,12 +14,10 @@ class Filter < Contract
1414 propertize ( %i[ token_id at_time ] )
1515
1616 validation do
17- # :nocov:
1817 params do
1918 required ( :token_id ) . filled ( :string )
2019 optional ( :at_time ) . maybe ( :integer )
2120 end
22- # :nocov:
2321 end
2422 end
2523 end
Original file line number Diff line number Diff line change @@ -15,12 +15,10 @@ class Filter < Contract
1515 propertize ( %i[ market_slug event_slug condition_id tags status min_volume limit offset start_time end_time ] )
1616
1717 validation do
18- # :nocov:
1918 params do
2019 optional ( :status ) . maybe ( :string , included_in? : %w[ open closed ] )
2120 optional ( :offset ) . maybe ( :integer , gteq? : 0 , lteq? : 100 )
2221 end
23- # :nocov:
2422 end
2523 end
2624
Original file line number Diff line number Diff line change @@ -14,15 +14,13 @@ class Filter < Contract
1414 propertize ( %i[ token_id start_time end_time limit offset ] )
1515
1616 validation do
17- # :nocov:
1817 params do
1918 required ( :token_id ) . filled ( :string )
2019 required ( :start_time ) . filled ( :integer )
2120 required ( :end_time ) . filled ( :integer )
2221 optional ( :limit ) . maybe ( :integer , gteq? : 1 , lteq? : 1000 )
2322 optional ( :offset ) . maybe ( :integer , gteq? : 0 )
2423 end
25- # :nocov:
2624 end
2725 end
2826 end
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class Filter < Contract
1616 propertize ( %i[ market_slug condition_id token_id start_time end_time limit offset user ] )
1717
1818 validation do
19- # :nocov:
2019 params do
2120 optional ( :market_slug ) . maybe ( :string )
2221 optional ( :condition_id ) . maybe ( :string )
@@ -27,7 +26,6 @@ class Filter < Contract
2726 optional ( :offset ) . maybe ( :integer , gteq? : 0 )
2827 optional ( :user ) . maybe ( :string )
2928 end
30- # :nocov:
3129 end
3230 end
3331 end
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ class Filter < Contract
1414 propertize ( %i[ eoa proxy with_metrics start_time end_time ] )
1515
1616 validation do
17- # :nocov:
1817 params do
1918 optional ( :eoa ) . maybe ( :string )
2019 optional ( :proxy ) . maybe ( :string )
@@ -27,7 +26,6 @@ class Filter < Contract
2726 key . failure ( 'Either eoa or proxy must be provided, but not both' ) if values [ :eoa ] && values [ :proxy ]
2827 key . failure ( 'Either eoa or proxy must be provided' ) if !values [ :eoa ] && !values [ :proxy ]
2928 end
30- # :nocov:
3129 end
3230 end
3331 end
Original file line number Diff line number Diff line change @@ -14,14 +14,12 @@ class Filter < Contract
1414 propertize ( %i[ wallet_address granularity start_time end_time ] )
1515
1616 validation do
17- # :nocov:
1817 params do
1918 required ( :wallet_address ) . filled ( :string )
2019 required ( :granularity ) . filled ( :string , included_in? : %w[ day week month year all ] )
2120 optional ( :start_time ) . maybe ( :integer )
2221 optional ( :end_time ) . maybe ( :integer )
2322 end
24- # :nocov:
2523 end
2624 end
2725 end
You can’t perform that action at this time.
0 commit comments