Class: Fadada::Configuration
- Inherits:
-
Object
- Object
- Fadada::Configuration
- Defined in:
- lib/fadada/configuration.rb
Instance Method Summary collapse
-
#app_id ⇒ Object
app_id.
- #app_id=(app_id) ⇒ Object
-
#app_secret ⇒ Object
app_secret.
- #app_secret=(app_secret) ⇒ Object
-
#customer_id ⇒ Object
平台方客户编号.
- #customer_id=(customer_id) ⇒ Object
-
#customer_name ⇒ Object
平台方客户名称.
- #customer_name=(customer_name) ⇒ Object
-
#logger ⇒ Object
logger.
- #logger=(logger) ⇒ Object
-
#logger_format ⇒ Object
logger format.
- #logger_format=(logger_format) ⇒ Object
-
#server ⇒ Object
接口地址.
- #server=(server) ⇒ Object
Instance Method Details
#app_id ⇒ Object
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_secret ⇒ Object
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_id ⇒ Object
平台方客户编号
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_name ⇒ Object
平台方客户名称
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 |
#logger ⇒ Object
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_format ⇒ Object
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 |
#server ⇒ Object
接口地址
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 |