Class: Velix::Modules::Time
- Inherits:
-
Object
- Object
- Velix::Modules::Time
- Defined in:
- lib/velix/modules/time.rb
Overview
Velix Time (ponto/punch) has NO endpoint exposed under the API-key
surface (/v1/api/*) as of the current public-api.yaml spec. The
time:read/time:write scopes exist on ApplicationApiKey but no
controller is mounted for them yet (see spec note "Velix Time —
COBERTURA PARCIAL"). Do not implement calls against guessed endpoints.
This stub exists only so that any accidental client.time call fails
loudly instead of silently hitting a nonexistent/wrong endpoint.
Instance Method Summary collapse
-
#initialize(client) ⇒ Time
constructor
A new instance of Time.
- #method_missing(name) ⇒ Object
- #respond_to_missing? ⇒ Boolean
Constructor Details
#initialize(client) ⇒ Time
Returns a new instance of Time.
14 15 16 |
# File 'lib/velix/modules/time.rb', line 14 def initialize(client) @client = client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
18 19 20 21 22 |
# File 'lib/velix/modules/time.rb', line 18 def method_missing(name, *) raise NotImplementedError, "Velix::Modules::Time##{name} is not implemented — Velix Time has no endpoint " \ "under /v1/api/* yet (see public-api.yaml, task #616 follow-up)." end |
Instance Method Details
#respond_to_missing? ⇒ Boolean
24 25 26 |
# File 'lib/velix/modules/time.rb', line 24 def respond_to_missing?(*) true end |