Class: Velix::Modules::Time

Inherits:
Object
  • Object
show all
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

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

Raises:

  • (NotImplementedError)


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

Returns:

  • (Boolean)


24
25
26
# File 'lib/velix/modules/time.rb', line 24

def respond_to_missing?(*)
  true
end