Class: Sink::Resources::Names::ReservedNames::Public
- Inherits:
-
Object
- Object
- Sink::Resources::Names::ReservedNames::Public
- 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
- #class_ ⇒ Sink::Resources::Names::ReservedNames::Public::Class readonly
- #interface ⇒ Sink::Resources::Names::ReservedNames::Public::Interface readonly
- #private ⇒ Sink::Resources::Names::ReservedNames::Public::Private readonly
Instance Method Summary collapse
-
#initialize(client:) ⇒ Public
constructor
A new instance of Public.
- #public(opts = {}) ⇒ Sink::Models::Public
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
#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 |
#interface ⇒ Sink::Resources::Names::ReservedNames::Public::Interface (readonly)
12 13 14 |
# File 'lib/sink/resources/names/reserved_names/public.rb', line 12 def interface @interface end |
#private ⇒ Sink::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
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 |