Class: Sink::Resources::Names::ReservedNames::Public::Private
- Inherits:
-
Object
- Object
- Sink::Resources::Names::ReservedNames::Public::Private
- Defined in:
- lib/sink/resources/names/reserved_names/public/private.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Private
constructor
A new instance of Private.
- #private(opts = {}) ⇒ Sink::Models::Private
Constructor Details
#initialize(client:) ⇒ Private
Returns a new instance of Private.
10 11 12 |
# File 'lib/sink/resources/names/reserved_names/public/private.rb', line 10 def initialize(client:) @client = client end |
Instance Method Details
#private(opts = {}) ⇒ Sink::Models::Private
17 18 19 20 21 22 23 24 |
# File 'lib/sink/resources/names/reserved_names/public/private.rb', line 17 def private(opts = {}) req = { method: :get, path: "/names/reserved_names/public/private", model: Sink::Models::Private } @client.request(req, opts) end |