Skip to content

Commit 6211751

Browse files
chore: update yard comment formatting (#234)
1 parent af4a884 commit 6211751

File tree

284 files changed

+14159
-14158
lines changed

Some content is hidden

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

284 files changed

+14159
-14158
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/orb-billing/resource_namespaces.rb'
89
- 'test/orb-billing/test_helper.rb'
910
exclude:
1011
- 'rbi/**/*'

lib/orb/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: Orb::Internal::Type::Unknown, options: {})
399399
#

lib/orb/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/orb/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
@@ -143,7 +143,7 @@ def optional(name_sym, type_info, spec = {})
143143
# @api private
144144
#
145145
# `request_only` attributes not excluded from `.#coerce` when receiving responses
146-
# even if well behaved servers should not send them
146+
# even if well behaved servers should not send them
147147
#
148148
# @param blk [Proc]
149149
private def request_only(&blk)
@@ -291,11 +291,11 @@ def dump(value)
291291
end
292292

293293
# Returns the raw value associated with the given key, if found. Otherwise, nil is
294-
# returned.
294+
# returned.
295295
#
296-
# It is valid to lookup keys that are not in the API spec, for example to access
297-
# undocumented features. This method does not parse response data into
298-
# higher-level types. Lookup by anything other than a Symbol is an ArgumentError.
296+
# It is valid to lookup keys that are not in the API spec, for example to access
297+
# undocumented features. This method does not parse response data into
298+
# higher-level types. Lookup by anything other than a Symbol is an ArgumentError.
299299
#
300300
# @param key [Symbol]
301301
#
@@ -310,12 +310,12 @@ def [](key)
310310

311311
# Returns a Hash of the data underlying this object. O(1)
312312
#
313-
# Keys are Symbols and values are the raw values from the response. The return
314-
# value indicates which values were ever set on the object. i.e. there will be a
315-
# key in this hash if they ever were, even if the set value was nil.
313+
# Keys are Symbols and values are the raw values from the response. The return
314+
# value indicates which values were ever set on the object. i.e. there will be a
315+
# key in this hash if they ever were, even if the set value was nil.
316316
#
317-
# This method is not recursive. The returned value is shared by the object, so it
318-
# should not be mutated.
317+
# This method is not recursive. The returned value is shared by the object, so it
318+
# should not be mutated.
319319
#
320320
# @return [Hash{Symbol=>Object}]
321321
def to_h = @data

lib/orb/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 [Orb::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/orb/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
# # `billing_cycle_relative_date` is a `Orb::Models::BillingCycleRelativeDate`
@@ -66,7 +66,7 @@ def ==(other)
6666
# @api private
6767
#
6868
# Unlike with primitives, `Enum` additionally validates that the value is a member
69-
# of the enum.
69+
# of the enum.
7070
#
7171
# @param value [String, Symbol, Object]
7272
#

lib/orb/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/orb/models/alert.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Alert < Orb::Internal::Type::BaseModel
5454

5555
# @!attribute thresholds
5656
# The thresholds that define the conditions under which the alert will be
57-
# triggered.
57+
# triggered.
5858
#
5959
# @return [Array<Orb::Models::Alert::Threshold>, nil]
6060
required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold] }, nil?: true
@@ -67,10 +67,10 @@ class Alert < Orb::Internal::Type::BaseModel
6767

6868
# @!parse
6969
# # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
70-
# # usage, or credit balance and trigger webhooks when a threshold is exceeded.
70+
# # usage, or credit balance and trigger webhooks when a threshold is exceeded.
7171
# #
72-
# # Alerts created through the API can be scoped to either customers or
73-
# # subscriptions.
72+
# # Alerts created through the API can be scoped to either customers or
73+
# # subscriptions.
7474
# #
7575
# # @param id [String]
7676
# # @param created_at [Time]
@@ -136,8 +136,8 @@ class Plan < Orb::Internal::Type::BaseModel
136136

137137
# @!attribute external_plan_id
138138
# An optional user-defined ID for this plan resource, used throughout the system
139-
# as an alias for this Plan. Use this field to identify a plan by an existing
140-
# identifier in your system.
139+
# as an alias for this Plan. Use this field to identify a plan by an existing
140+
# identifier in your system.
141141
#
142142
# @return [String, nil]
143143
required :external_plan_id, String, nil?: true
@@ -185,15 +185,15 @@ class Subscription < Orb::Internal::Type::BaseModel
185185
class Threshold < Orb::Internal::Type::BaseModel
186186
# @!attribute value
187187
# The value at which an alert will fire. For credit balance alerts, the alert will
188-
# fire at or below this value. For usage and cost alerts, the alert will fire at
189-
# or above this value.
188+
# fire at or below this value. For usage and cost alerts, the alert will fire at
189+
# or above this value.
190190
#
191191
# @return [Float]
192192
required :value, Float
193193

194194
# @!parse
195195
# # Thresholds are used to define the conditions under which an alert will be
196-
# # triggered.
196+
# # triggered.
197197
# #
198198
# # @param value [Float]
199199
# #

lib/orb/models/alert_create_for_customer_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ module Type
5656
class Threshold < Orb::Internal::Type::BaseModel
5757
# @!attribute value
5858
# The value at which an alert will fire. For credit balance alerts, the alert will
59-
# fire at or below this value. For usage and cost alerts, the alert will fire at
60-
# or above this value.
59+
# fire at or below this value. For usage and cost alerts, the alert will fire at
60+
# or above this value.
6161
#
6262
# @return [Float]
6363
required :value, Float
6464

6565
# @!parse
6666
# # Thresholds are used to define the conditions under which an alert will be
67-
# # triggered.
67+
# # triggered.
6868
# #
6969
# # @param value [Float]
7070
# #

lib/orb/models/alert_create_for_external_customer_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ module Type
5656
class Threshold < Orb::Internal::Type::BaseModel
5757
# @!attribute value
5858
# The value at which an alert will fire. For credit balance alerts, the alert will
59-
# fire at or below this value. For usage and cost alerts, the alert will fire at
60-
# or above this value.
59+
# fire at or below this value. For usage and cost alerts, the alert will fire at
60+
# or above this value.
6161
#
6262
# @return [Float]
6363
required :value, Float
6464

6565
# @!parse
6666
# # Thresholds are used to define the conditions under which an alert will be
67-
# # triggered.
67+
# # triggered.
6868
# #
6969
# # @param value [Float]
7070
# #

0 commit comments

Comments
 (0)