Module: Baidu::Aip::Configure
- Included in:
- Baidu::Aip
- Defined in:
- lib/baidu/aip/configure.rb
Instance Method Summary collapse
- #api_key ⇒ Object
- #api_key=(key) ⇒ Object
- #configure {|_self| ... } ⇒ Object
- #secret_key ⇒ Object
- #secret_key=(secret) ⇒ Object
Instance Method Details
#api_key ⇒ Object
15 16 17 |
# File 'lib/baidu/aip/configure.rb', line 15 def api_key @@api_key end |
#api_key=(key) ⇒ Object
7 8 9 |
# File 'lib/baidu/aip/configure.rb', line 7 def api_key=(key) @@api_key = key end |
#configure {|_self| ... } ⇒ Object
3 4 5 |
# File 'lib/baidu/aip/configure.rb', line 3 def configure yield self if block_given? end |
#secret_key ⇒ Object
19 20 21 |
# File 'lib/baidu/aip/configure.rb', line 19 def secret_key @@secret_key end |
#secret_key=(secret) ⇒ Object
11 12 13 |
# File 'lib/baidu/aip/configure.rb', line 11 def secret_key=(secret) @@secret_key = secret end |