Class: Sink::Resources::Names::ReservedNames
- Inherits:
-
Object
- Object
- Sink::Resources::Names::ReservedNames
- Defined in:
- lib/sink/resources/names/reserved_names.rb,
lib/sink/resources/names/reserved_names/import.rb,
lib/sink/resources/names/reserved_names/public.rb,
lib/sink/resources/names/reserved_names/methods.rb,
lib/sink/resources/names/reserved_names/public/class_.rb,
lib/sink/resources/names/reserved_names/public/private.rb,
lib/sink/resources/names/reserved_names/public/interface.rb
Defined Under Namespace
Classes: Import, Methods, Public
Instance Attribute Summary collapse
- #import ⇒ Sink::Resources::Names::ReservedNames::Import readonly
- #methods ⇒ Sink::Resources::Names::ReservedNames::Methods readonly
- #public ⇒ Sink::Resources::Names::ReservedNames::Public readonly
Instance Method Summary collapse
-
#common_reserved_params(params = {}, opts = {}) ⇒ nil
Endpoint with a ‘requestBody` that has a property name that can conflict with language keywords.
-
#initialize(client:) ⇒ ReservedNames
constructor
A new instance of ReservedNames.
Constructor Details
#initialize(client:) ⇒ ReservedNames
Returns a new instance of ReservedNames.
17 18 19 20 21 22 |
# File 'lib/sink/resources/names/reserved_names.rb', line 17 def initialize(client:) @client = client @public = Sink::Resources::Names::ReservedNames::Public.new(client: client) @import = Sink::Resources::Names::ReservedNames::Import.new(client: client) @methods = Sink::Resources::Names::ReservedNames::Methods.new(client: client) end |
Instance Attribute Details
#import ⇒ Sink::Resources::Names::ReservedNames::Import (readonly)
11 12 13 |
# File 'lib/sink/resources/names/reserved_names.rb', line 11 def import @import end |
#methods ⇒ Sink::Resources::Names::ReservedNames::Methods (readonly)
14 15 16 |
# File 'lib/sink/resources/names/reserved_names.rb', line 14 def methods @methods end |
#public ⇒ Sink::Resources::Names::ReservedNames::Public (readonly)
8 9 10 |
# File 'lib/sink/resources/names/reserved_names.rb', line 8 def public @public end |
Instance Method Details
#common_reserved_params(params = {}, opts = {}) ⇒ nil
Endpoint with a ‘requestBody` that has a property name that can conflict with
language keywords.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/sink/resources/names/reserved_names.rb', line 33 def common_reserved_params(params = {}, opts = {}) req = { method: :post, path: "/names/reserved_names/common_reserved_params", body: params, headers: {"Content-Type" => "application/json"}, model: NilClass } @client.request(req, opts) end |