Class: HubSpot::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hub_spot/configuration.rb

Constant Summary collapse

ATTRIBUTES =
%i[api_host client_id client_secret redirect_uri refresh_token logger].freeze

Class Method Summary collapse

Class Method Details

.client_id=(value) ⇒ Object

Raises:

  • (ArgumentError)


10
11
12
13
# File 'lib/hub_spot/configuration.rb', line 10

def client_id=(value)
  raise ArgumentError, "client_id cannot be blank" if value.nil? || value.empty?
  @client_id = value
end

.client_secret=(value) ⇒ Object

Raises:

  • (ArgumentError)


15
16
17
18
# File 'lib/hub_spot/configuration.rb', line 15

def client_secret=(value)
  raise ArgumentError, "client_secret cannot be blank" if value.nil? || value.empty?
  @client_secret = value
end

.redirect_uri=(value) ⇒ Object

Raises:

  • (ArgumentError)


20
21
22
23
# File 'lib/hub_spot/configuration.rb', line 20

def redirect_uri=(value)
  raise ArgumentError, "redirect_uri cannot be blank" if value.nil? || value.empty?
  @redirect_uri = value
end

.refresh_token=(value) ⇒ Object

Raises:

  • (ArgumentError)


25
26
27
28
# File 'lib/hub_spot/configuration.rb', line 25

def refresh_token=(value)
  raise ArgumentError, "refresh_token cannot be blank" if value.nil? || value.empty?
  @refresh_token = value
end