Class: Chemlab::Runtime::API::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/chemlab/runtime/api_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address = :gitlab, personal_access_token: nil, is_new_session: true, user: nil, ip_limits: false) ⇒ Client

Returns a new instance of Client.



11
12
13
14
# File 'lib/chemlab/runtime/api_client.rb', line 11

def initialize(address = :gitlab, personal_access_token: nil, is_new_session: true, user: nil, ip_limits: false)
  @address = address
  @user = user
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



9
10
11
# File 'lib/chemlab/runtime/api_client.rb', line 9

def address
  @address
end

#userObject (readonly)

Returns the value of attribute user.



9
10
11
# File 'lib/chemlab/runtime/api_client.rb', line 9

def user
  @user
end