Skip to content

Commit 47de683

Browse files
chore: reduce verbosity in type declarations (#66)
1 parent 1927323 commit 47de683

111 files changed

Lines changed: 673 additions & 1112 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/finch-api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# We already ship the preferred sorbet manifests in the package itself.
44
# `tapioca` currently does not offer us a way to opt out of unnecessary compilation.
5-
if defined?(:Tapioca) && caller_locations.any? { _1.path.end_with?("tapioca/cli.rb") }
5+
if Object.const_defined?(:Tapioca) && caller_locations.any? { _1.path.end_with?("tapioca/cli.rb") }
66
Warning.warn(
77
<<~WARN
88
\n

lib/finch-api/models/account_update_event.rb

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,11 +1930,9 @@ module Type
19301930

19311931
finalize!
19321932

1933-
class << self
1934-
# @!parse
1935-
# # @return [Array<Symbol>]
1936-
# def values; end
1937-
end
1933+
# @!parse
1934+
# # @return [Array<Symbol>]
1935+
# def self.values; end
19381936
end
19391937
end
19401938
end
@@ -1946,11 +1944,9 @@ module EventType
19461944

19471945
finalize!
19481946

1949-
class << self
1950-
# @!parse
1951-
# # @return [Array<Symbol>]
1952-
# def values; end
1953-
end
1947+
# @!parse
1948+
# # @return [Array<Symbol>]
1949+
# def self.values; end
19541950
end
19551951
end
19561952
end

lib/finch-api/models/company_event.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ module EventType
3232

3333
finalize!
3434

35-
class << self
36-
# @!parse
37-
# # @return [Array<Symbol>]
38-
# def values; end
39-
end
35+
# @!parse
36+
# # @return [Array<Symbol>]
37+
# def self.values; end
4038
end
4139
end
4240
end

lib/finch-api/models/connect/session_new_params.rb

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,9 @@ module Product
100100

101101
finalize!
102102

103-
class << self
104-
# @!parse
105-
# # @return [Array<Symbol>]
106-
# def values; end
107-
end
103+
# @!parse
104+
# # @return [Array<Symbol>]
105+
# def self.values; end
108106
end
109107

110108
class Integration < FinchAPI::BaseModel
@@ -138,11 +136,9 @@ module AuthMethod
138136

139137
finalize!
140138

141-
class << self
142-
# @!parse
143-
# # @return [Array<Symbol>]
144-
# def values; end
145-
end
139+
# @!parse
140+
# # @return [Array<Symbol>]
141+
# def self.values; end
146142
end
147143
end
148144

@@ -154,11 +150,9 @@ module Sandbox
154150

155151
finalize!
156152

157-
class << self
158-
# @!parse
159-
# # @return [Array<Symbol>]
160-
# def values; end
161-
end
153+
# @!parse
154+
# # @return [Array<Symbol>]
155+
# def self.values; end
162156
end
163157
end
164158
end

lib/finch-api/models/connect/session_reauthenticate_params.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ module Product
6161

6262
finalize!
6363

64-
class << self
65-
# @!parse
66-
# # @return [Array<Symbol>]
67-
# def values; end
68-
end
64+
# @!parse
65+
# # @return [Array<Symbol>]
66+
# def self.values; end
6967
end
7068
end
7169
end

lib/finch-api/models/connection_status_type.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ module ConnectionStatusType
1414

1515
finalize!
1616

17-
class << self
18-
# @!parse
19-
# # @return [Array<Symbol>]
20-
# def values; end
21-
end
17+
# @!parse
18+
# # @return [Array<Symbol>]
19+
# def self.values; end
2220
end
2321
end
2422
end

lib/finch-api/models/create_access_token_response.rb

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,9 @@ module ClientType
113113

114114
finalize!
115115

116-
class << self
117-
# @!parse
118-
# # @return [Array<Symbol>]
119-
# def values; end
120-
end
116+
# @!parse
117+
# # @return [Array<Symbol>]
118+
# def self.values; end
121119
end
122120

123121
# The type of the connection associated with the token.
@@ -132,11 +130,9 @@ module ConnectionType
132130

133131
finalize!
134132

135-
class << self
136-
# @!parse
137-
# # @return [Array<Symbol>]
138-
# def values; end
139-
end
133+
# @!parse
134+
# # @return [Array<Symbol>]
135+
# def self.values; end
140136
end
141137
end
142138
end

lib/finch-api/models/directory_event.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ module EventType
5757

5858
finalize!
5959

60-
class << self
61-
# @!parse
62-
# # @return [Array<Symbol>]
63-
# def values; end
64-
end
60+
# @!parse
61+
# # @return [Array<Symbol>]
62+
# def self.values; end
6563
end
6664
end
6765
end

lib/finch-api/models/employment_event.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ module EventType
5757

5858
finalize!
5959

60-
class << self
61-
# @!parse
62-
# # @return [Array<Symbol>]
63-
# def values; end
64-
end
60+
# @!parse
61+
# # @return [Array<Symbol>]
62+
# def self.values; end
6563
end
6664
end
6765
end

lib/finch-api/models/hris/benefit_contribution.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ module Type
3333

3434
finalize!
3535

36-
class << self
37-
# @!parse
38-
# # @return [Array<Symbol>]
39-
# def values; end
40-
end
36+
# @!parse
37+
# # @return [Array<Symbol>]
38+
# def self.values; end
4139
end
4240
end
4341
end

0 commit comments

Comments
 (0)