Class: Sink::Resources::Names::ReservedNames
- Inherits:
-
Object
- Object
- Sink::Resources::Names::ReservedNames
show all
- 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
Instance Method Summary
collapse
Constructor Details
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
11
12
13
|
# File 'lib/sink/resources/names/reserved_names.rb', line 11
def import
@import
end
|
14
15
16
|
# File 'lib/sink/resources/names/reserved_names.rb', line 14
def methods
@methods
end
|
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
|