Class: EUVD::API::Meta
- Inherits:
-
Object
- Object
- EUVD::API::Meta
- Defined in:
- lib/euvd/api/meta.rb
Overview
Access to meta/utility endpoints (banner, assigners list).
Instance Method Summary collapse
-
#assigners ⇒ Array<String>
GET /api/assigners/names Returns the list of assigner names.
-
#banner ⇒ Sawyer::Resource
GET /api/banner Returns the banner status (enabled/message).
-
#initialize(client) ⇒ Meta
constructor
A new instance of Meta.
Constructor Details
#initialize(client) ⇒ Meta
Returns a new instance of Meta.
7 8 9 |
# File 'lib/euvd/api/meta.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#assigners ⇒ Array<String>
GET /api/assigners/names Returns the list of assigner names.
15 16 17 |
# File 'lib/euvd/api/meta.rb', line 15 def assigners @client.get('assigners/names') end |
#banner ⇒ Sawyer::Resource
GET /api/banner Returns the banner status (enabled/message).
23 24 25 |
# File 'lib/euvd/api/meta.rb', line 23 def @client.get('banner') end |