Class: Fadada::Configuration

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

Instance Method Summary collapse

Instance Method Details

#app_idObject

app_id



13
14
15
# File 'lib/fadada/configuration.rb', line 13

def app_id
  @app_id
end

#app_id=(app_id) ⇒ Object



17
18
19
# File 'lib/fadada/configuration.rb', line 17

def app_id=(app_id)
  @app_id = app_id
end

#app_secretObject

app_secret



22
23
24
# File 'lib/fadada/configuration.rb', line 22

def app_secret
  @app_secret
end

#app_secret=(app_secret) ⇒ Object



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

def app_secret=(app_secret)
  @app_secret = app_secret
end

#customer_idObject

平台方客户编号



31
32
33
# File 'lib/fadada/configuration.rb', line 31

def customer_id
  @customer_id
end

#customer_id=(customer_id) ⇒ Object



35
36
37
# File 'lib/fadada/configuration.rb', line 35

def customer_id=(customer_id)
  @customer_id = customer_id
end

#customer_nameObject

平台方客户名称



40
41
42
# File 'lib/fadada/configuration.rb', line 40

def customer_name
  @customer_name
end

#customer_name=(customer_name) ⇒ Object



44
45
46
# File 'lib/fadada/configuration.rb', line 44

def customer_name=(customer_name)
  @customer_name = customer_name
end

#loggerObject

logger



49
50
51
# File 'lib/fadada/configuration.rb', line 49

def logger
  @logger ||= Logger.new(STDOUT)
end

#logger=(logger) ⇒ Object



53
54
55
# File 'lib/fadada/configuration.rb', line 53

def logger=(logger)
  @logger = logger
end

#logger_formatObject

logger format



58
59
60
# File 'lib/fadada/configuration.rb', line 58

def logger_format
  @logger_format ||= :curl
end

#logger_format=(logger_format) ⇒ Object



62
63
64
# File 'lib/fadada/configuration.rb', line 62

def logger_format=(logger_format)
  @logger_format = logger_format.to_sym
end

#serverObject

接口地址



4
5
6
# File 'lib/fadada/configuration.rb', line 4

def server
  @server ||= 'https://testapi.fadada.com:8443/api/'
end

#server=(server) ⇒ Object



8
9
10
# File 'lib/fadada/configuration.rb', line 8

def server=(server)
  @server = server
end