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

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/names/reserved_names/public.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: Class, Interface, Private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Public

Returns a new instance of Public.

Parameters:



18
19
20
21
22
23
# File 'lib/sink/resources/names/reserved_names/public.rb', line 18

def initialize(client:)
  @client = client
  @private = Sink::Resources::Names::ReservedNames::Public::Private.new(client: client)
  @interface = Sink::Resources::Names::ReservedNames::Public::Interface.new(client: client)
  @class_ = Sink::Resources::Names::ReservedNames::Public::Class.new(client: client)
end

Instance Attribute Details

#class_Sink::Resources::Names::ReservedNames::Public::Class (readonly)



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

def class_
  @class_
end

#interfaceSink::Resources::Names::ReservedNames::Public::Interface (readonly)



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

def interface
  @interface
end

#privateSink::Resources::Names::ReservedNames::Public::Private (readonly)



9
10
11
# File 'lib/sink/resources/names/reserved_names/public.rb', line 9

def private
  @private
end

Instance Method Details

#public(opts = {}) ⇒ Sink::Models::Public

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



28
29
30
31
32
33
34
35
# File 'lib/sink/resources/names/reserved_names/public.rb', line 28

def public(opts = {})
  req = {
    method: :get,
    path: "/names/reserved_names/public",
    model: Sink::Models::Public
  }
  @client.request(req, opts)
end