Class: Sink::Resources::Names::ReservedNames::Public
- Inherits:
-
Object
- Object
- Sink::Resources::Names::ReservedNames::Public
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.
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
15
16
17
|
# File 'lib/sink/resources/names/reserved_names/public.rb', line 15
def class_
@class_
end
|
12
13
14
|
# File 'lib/sink/resources/names/reserved_names/public.rb', line 12
def interface
@interface
end
|
9
10
11
|
# File 'lib/sink/resources/names/reserved_names/public.rb', line 9
def private
@private
end
|
Instance Method Details
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
|