Class: Brightpearl::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/brightpearl/config.rb

Instance Attribute Summary collapse

Instance Attribute Details

#accountObject

Brightpearl account



5
6
7
# File 'lib/brightpearl/config.rb', line 5

def 
  @account
end

#api_domainObject

API URL base. Depends on instance region. Obtained after auth process



13
14
15
# File 'lib/brightpearl/config.rb', line 13

def api_domain
  @api_domain
end

#app_refObject

Application specific



8
9
10
# File 'lib/brightpearl/config.rb', line 8

def app_ref
  @app_ref
end

#app_secretObject

App secret



9
10
11
# File 'lib/brightpearl/config.rb', line 9

def app_secret
  @app_secret
end

#debug_modeObject

Display log data for request done when true



16
17
18
# File 'lib/brightpearl/config.rb', line 16

def debug_mode
  @debug_mode
end

#dev_refObject

Developer Account



4
5
6
# File 'lib/brightpearl/config.rb', line 4

def dev_ref
  @dev_ref
end

#refresh_tokenObject

API refresh token



14
15
16
# File 'lib/brightpearl/config.rb', line 14

def refresh_token
  @refresh_token
end

#tokenObject

Based on authentication process



12
13
14
# File 'lib/brightpearl/config.rb', line 12

def token
  @token
end