Class: Sink::Resources::Names::ReservedNames

Inherits:
Object
  • Object
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

#initialize(client:) ⇒ ReservedNames

Returns a new instance of ReservedNames.

Parameters:



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

#importSink::Resources::Names::ReservedNames::Import (readonly)

Returns:



11
12
13
# File 'lib/sink/resources/names/reserved_names.rb', line 11

def import
  @import
end

#methodsSink::Resources::Names::ReservedNames::Methods (readonly)

Returns:



14
15
16
# File 'lib/sink/resources/names/reserved_names.rb', line 14

def methods
  @methods
end

#publicSink::Resources::Names::ReservedNames::Public (readonly)

Returns:



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.

Parameters:

  • (defaults to: {})

    Attributes to send in this request. @option params [String] :from

  • (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



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