Class: Supersaas::BaseApi

Inherits:
Object
  • Object
show all
Defined in:
lib/supersaas-api-client/api/base_api.rb

Direct Known Subclasses

Appointments, Forms, Groups, Promotions, Schedules, Users

Constant Summary collapse

INTEGER_REGEX =
/\A[0-9]+\Z/.freeze
DATETIME_REGEX =
/\A\d{4}-\d{1,2}-\d{1,2}\s\d{1,2}:\d{1,2}:\d{1,2}\Z/.freeze
PROMOTION_REGEX =
/\A[0-9a-zA-Z]+\Z/.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ BaseApi

Returns a new instance of BaseApi.



11
12
13
# File 'lib/supersaas-api-client/api/base_api.rb', line 11

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



5
6
7
# File 'lib/supersaas-api-client/api/base_api.rb', line 5

def client
  @client
end