Skip to content

Commit 695363a

Browse files
chore: update yard comment formatting (#126)
1 parent ff97af2 commit 695363a

File tree

140 files changed

+607
-606
lines changed

Some content is hidden

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

140 files changed

+607
-606
lines changed

.solargraph.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ include:
55
- 'Rakefile'
66
- 'examples/**/*.rb'
77
- 'lib/**/*.rb'
8+
- 'test/finch-api/resource_namespaces.rb'
89
- 'test/finch-api/test_helper.rb'
910
exclude:
1011
- 'rbi/**/*'

lib/finch_api/internal/transport/base_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def initialize(
393393
end
394394

395395
# Execute the request specified by `req`. This is the method that all resource
396-
# methods call into.
396+
# methods call into.
397397
#
398398
# @overload request(method, path, query: {}, headers: {}, body: nil, unwrap: nil, page: nil, stream: nil, model: FinchAPI::Internal::Type::Unknown, options: {})
399399
#

lib/finch_api/internal/transport/pooled_net_requester.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Transport
66
# @api private
77
class PooledNetRequester
88
# from the golang stdlib
9-
# https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49
9+
# https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49
1010
KEEP_ALIVE_TIMEOUT = 30
1111

1212
class << self

lib/finch_api/internal/type/base_model.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class << self
1919
# @api private
2020
#
2121
# Assumes superclass fields are totally defined before fields are accessed /
22-
# defined on subclasses.
22+
# defined on subclasses.
2323
#
2424
# @return [Hash{Symbol=>Hash{Symbol=>Object}}]
2525
def known_fields
@@ -150,7 +150,7 @@ def optional(name_sym, type_info, spec = {})
150150
# @api private
151151
#
152152
# `request_only` attributes not excluded from `.#coerce` when receiving responses
153-
# even if well behaved servers should not send them
153+
# even if well behaved servers should not send them
154154
#
155155
# @param blk [Proc]
156156
private def request_only(&blk)
@@ -298,11 +298,11 @@ def dump(value)
298298
end
299299

300300
# Returns the raw value associated with the given key, if found. Otherwise, nil is
301-
# returned.
301+
# returned.
302302
#
303-
# It is valid to lookup keys that are not in the API spec, for example to access
304-
# undocumented features. This method does not parse response data into
305-
# higher-level types. Lookup by anything other than a Symbol is an ArgumentError.
303+
# It is valid to lookup keys that are not in the API spec, for example to access
304+
# undocumented features. This method does not parse response data into
305+
# higher-level types. Lookup by anything other than a Symbol is an ArgumentError.
306306
#
307307
# @param key [Symbol]
308308
#
@@ -317,12 +317,12 @@ def [](key)
317317

318318
# Returns a Hash of the data underlying this object. O(1)
319319
#
320-
# Keys are Symbols and values are the raw values from the response. The return
321-
# value indicates which values were ever set on the object. i.e. there will be a
322-
# key in this hash if they ever were, even if the set value was nil.
320+
# Keys are Symbols and values are the raw values from the response. The return
321+
# value indicates which values were ever set on the object. i.e. there will be a
322+
# key in this hash if they ever were, even if the set value was nil.
323323
#
324-
# This method is not recursive. The returned value is shared by the object, so it
325-
# should not be mutated.
324+
# This method is not recursive. The returned value is shared by the object, so it
325+
# should not be mutated.
326326
#
327327
# @return [Hash{Symbol=>Object}]
328328
def to_h = @data

lib/finch_api/internal/type/converter.rb

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,37 +75,37 @@ def type_info(spec)
7575
#
7676
# Based on `target`, transform `value` into `target`, to the extent possible:
7777
#
78-
# 1. if the given `value` conforms to `target` already, return the given `value`
79-
# 2. if it's possible and safe to convert the given `value` to `target`, then the
80-
# converted value
81-
# 3. otherwise, the given `value` unaltered
78+
# 1. if the given `value` conforms to `target` already, return the given `value`
79+
# 2. if it's possible and safe to convert the given `value` to `target`, then the
80+
# converted value
81+
# 3. otherwise, the given `value` unaltered
8282
#
83-
# The coercion process is subject to improvement between minor release versions.
84-
# See https://docs.pydantic.dev/latest/concepts/unions/#smart-mode
83+
# The coercion process is subject to improvement between minor release versions.
84+
# See https://docs.pydantic.dev/latest/concepts/unions/#smart-mode
8585
#
8686
# @param target [FinchAPI::Internal::Type::Converter, Class]
8787
#
8888
# @param value [Object]
8989
#
9090
# @param state [Hash{Symbol=>Object}] The `strictness` is one of `true`, `false`, or `:strong`. This informs the
91-
# coercion strategy when we have to decide between multiple possible conversion
92-
# targets:
91+
# coercion strategy when we have to decide between multiple possible conversion
92+
# targets:
9393
#
94-
# - `true`: the conversion must be exact, with minimum coercion.
95-
# - `false`: the conversion can be approximate, with some coercion.
96-
# - `:strong`: the conversion must be exact, with no coercion, and raise an error
97-
# if not possible.
94+
# - `true`: the conversion must be exact, with minimum coercion.
95+
# - `false`: the conversion can be approximate, with some coercion.
96+
# - `:strong`: the conversion must be exact, with no coercion, and raise an error
97+
# if not possible.
9898
#
99-
# The `exactness` is `Hash` with keys being one of `yes`, `no`, or `maybe`. For
100-
# any given conversion attempt, the exactness will be updated based on how closely
101-
# the value recursively matches the target type:
99+
# The `exactness` is `Hash` with keys being one of `yes`, `no`, or `maybe`. For
100+
# any given conversion attempt, the exactness will be updated based on how closely
101+
# the value recursively matches the target type:
102102
#
103-
# - `yes`: the value can be converted to the target type with minimum coercion.
104-
# - `maybe`: the value can be converted to the target type with some reasonable
105-
# coercion.
106-
# - `no`: the value cannot be converted to the target type.
103+
# - `yes`: the value can be converted to the target type with minimum coercion.
104+
# - `maybe`: the value can be converted to the target type with some reasonable
105+
# coercion.
106+
# - `no`: the value cannot be converted to the target type.
107107
#
108-
# See implementation below for more details.
108+
# See implementation below for more details.
109109
#
110110
# @option state [Boolean, :strong] :strictness
111111
#

lib/finch_api/internal/type/enum.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ module Type
66
# @api private
77
#
88
# A value from among a specified list of options. OpenAPI enum values map to Ruby
9-
# values in the SDK as follows:
9+
# values in the SDK as follows:
1010
#
11-
# 1. boolean => true | false
12-
# 2. integer => Integer
13-
# 3. float => Float
14-
# 4. string => Symbol
11+
# 1. boolean => true | false
12+
# 2. integer => Integer
13+
# 3. float => Float
14+
# 4. string => Symbol
1515
#
16-
# We can therefore convert string values to Symbols, but can't convert other
17-
# values safely.
16+
# We can therefore convert string values to Symbols, but can't convert other
17+
# values safely.
1818
#
1919
# @example
2020
# # `connection_status_type` is a `FinchAPI::Models::ConnectionStatusType`
@@ -70,7 +70,7 @@ def ==(other)
7070
# @api private
7171
#
7272
# Unlike with primitives, `Enum` additionally validates that the value is a member
73-
# of the enum.
73+
# of the enum.
7474
#
7575
# @param value [String, Symbol, Object]
7676
#

lib/finch_api/internal/util.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class << self
152152
# @api private
153153
#
154154
# Recursively merge one hash with another. If the values at a given key are not
155-
# both hashes, just take the new value.
155+
# both hashes, just take the new value.
156156
#
157157
# @param values [Array<Object>]
158158
#

lib/finch_api/models/account_update_event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Data < FinchAPI::Internal::Type::BaseModel
5252
class AuthenticationMethod < FinchAPI::Internal::Type::BaseModel
5353
# @!attribute benefits_support
5454
# Each benefit type and their supported features. If the benefit type is not
55-
# supported, the property will be null
55+
# supported, the property will be null
5656
#
5757
# @return [FinchAPI::Models::HRIS::BenefitsSupport, nil]
5858
optional :benefits_support, -> { FinchAPI::Models::HRIS::BenefitsSupport }, nil?: true

lib/finch_api/models/base_webhook_event.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ module Models
55
class BaseWebhookEvent < FinchAPI::Internal::Type::BaseModel
66
# @!attribute account_id
77
# [DEPRECATED] Unique Finch ID of the employer account used to make this
8-
# connection. Use `connection_id` instead to identify the connection associated
9-
# with this event.
8+
# connection. Use `connection_id` instead to identify the connection associated
9+
# with this event.
1010
#
1111
# @return [String]
1212
required :account_id, String
1313

1414
# @!attribute company_id
1515
# [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
16-
# `connection_id` instead to identify the connection associated with this event.
16+
# `connection_id` instead to identify the connection associated with this event.
1717
#
1818
# @return [String]
1919
required :company_id, String

lib/finch_api/models/connect/session_new_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class SessionNewParams < FinchAPI::Internal::Type::BaseModel
4242

4343
# @!attribute minutes_to_expire
4444
# The number of minutes until the session expires (defaults to 43,200, which is 30
45-
# days)
45+
# days)
4646
#
4747
# @return [Float, nil]
4848
optional :minutes_to_expire, Float, nil?: true

0 commit comments

Comments
 (0)