Class: OpenapiClient::ScopesRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi_client/models/scopes_request.rb

Constant Summary collapse

OFFICIAL_COMPANY =
"/2023-03-01/official/company".freeze
OFFICIAL_EMPLOYEE =
"/2023-03-01/official/employee".freeze
OFFICIAL_EMPLOYEES =
"/2023-03-01/official/employees".freeze
OFFICIAL_GROUPS =
"/2023-03-01/official/groups".freeze
OFFICIAL_IDENTITY =
"/2023-03-01/official/identity".freeze
OFFICIAL_TIME_OFF_BALANCES =
"/2023-03-01/official/time-off-balances".freeze
OFFICIAL_TIME_OFF_ENTRIES =
"/2023-03-01/official/time-off-entries".freeze
OFFICIAL_TIMESHEETS =
"/2023-03-01/official/timesheets".freeze
OFFICIAL_WORK_LOCATIONS =
"/2023-03-01/official/work-locations".freeze
XHR_COMPANY =
"/2023-03-01/xhr/company".freeze
XHR_EMPLOYEE =
"/2023-03-01/xhr/employee".freeze
XHR_EMPLOYEES =
"/2023-03-01/xhr/employees".freeze
XHR_GROUPS =
"/2023-03-01/xhr/groups".freeze
XHR_IDENTITY =
"/2023-03-01/xhr/identity".freeze
XHR_PAYRUNS =
"/2023-03-01/xhr/payruns".freeze
XHR_PAYRUNS_PAYRUN_ID =
"/2023-03-01/xhr/payruns/:payrun_id".freeze
XHR_TIME_OFF_BALANCES =
"/2023-03-01/xhr/time-off-balances".freeze
XHR_TIME_OFF_ENTRIES =
"/2023-03-01/xhr/time-off-entries".freeze
XHR_TIMESHEETS =
"/2023-03-01/xhr/timesheets".freeze
XHR_WORK_LOCATIONS =
"/2023-03-01/xhr/work-locations".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



42
43
44
# File 'lib/openapi_client/models/scopes_request.rb', line 42

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



49
50
51
52
53
# File 'lib/openapi_client/models/scopes_request.rb', line 49

def build_from_hash(value)
  constantValues = ScopesRequest.constants.select { |c| ScopesRequest::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #ScopesRequest" if constantValues.empty?
  value
end