Module: WhenIWork

Defined in:
lib/wheniwork-ruby.rb,
lib/wheniwork-ruby/api/api.rb,
lib/wheniwork-ruby/version.rb,
lib/wheniwork-ruby/api_error.rb,
lib/wheniwork-ruby/api_client.rb,
lib/wheniwork-ruby/models/user.rb,
lib/wheniwork-ruby/models/shift.rb,
lib/wheniwork-ruby/configuration.rb,
lib/wheniwork-ruby/models/position.rb,
lib/wheniwork-ruby/modules/response.rb,
lib/wheniwork-ruby/models/inline_response_200.rb,
lib/wheniwork-ruby/models/inline_response_200_1.rb,
lib/wheniwork-ruby/models/inline_response_200_2.rb,
lib/wheniwork-ruby/models/inline_response_200_3.rb,
lib/wheniwork-ruby/models/inline_response_200_4.rb

Overview

Wheniwork

OpenAPI spec version: v2

Generated by: github.com/swagger-api/swagger-codegen.git

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Modules: Response Classes: Api, ApiClient, ApiError, Configuration, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, Position, Shift, User

Constant Summary collapse

VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

WhenIWork.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



52
53
54
55
56
57
58
# File 'lib/wheniwork-ruby.rb', line 52

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end